DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+6 =
Submit