Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python code to fetch all the files with txt extension from a folder

import glob, os.
os. chdir("/mydir")
for file in glob. glob("*.txt"):
print(file)
 
PREVIOUS NEXT
Tagged: #python #code #fetch #files #txt #extension #folder
ADD COMMENT
Topic
Name
2+6 =