Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list files in directory

from os import walk

f = []
for (dirpath, dirnames, filenames) in walk(mypath):
    f.extend(filenames)
    break
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #list #files #directory
ADD COMMENT
Topic
Name
3+1 =