Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list files in directory

import os
folder_path = "./folder-path"

for path, currentDirectory, files in os.walk(folder_path):
    for file in files:
        if not file.startswith("."):
            print(os.path.join(path, file))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #list #files #directory
ADD COMMENT
Topic
Name
2+5 =