Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

glob list all files in directory

import glob, os
os.chdir("/mydir")
for file in glob.glob("*.txt"):
    print(file)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #glob #list #files #directory
ADD COMMENT
Topic
Name
3+6 =