Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list files in directory python with extension

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