Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list all files in python

from os import walk
from os.path import join
path = 'C:'
# Creates list of the items in directories (+subdirectories)
items = [join(root, file) for root, subdirs, files in walk(path) for file in files]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #files #python
ADD COMMENT
Topic
Name
2+5 =