Answers for "serach in all files in a directory python"

0

Get all file in folder Python

path = "C:code"

import glob

txtfiles = []
for file in glob.glob(path + "\*.m4a"):
    txtfiles.append(file)

for item in txtfiles:
    print(item)
Posted by: Guest on November-12-2021
-1

python search all txts in a folder

index_file =  open('index.txt', 'r')
    for line in index_file:
       ....
Posted by: Guest on December-12-2020

Code answers related to "serach in all files in a directory python"

Python Answers by Framework

Browse Popular Code Answers by Language