Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get all file names in a dir

from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
 
PREVIOUS NEXT
Tagged: #python #file #names #dir
ADD COMMENT
Topic
Name
7+7 =