Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python os.walk recursive

for root, dirs, files in os.walk(rootFolderPath):
    for filename in files:
        doSomethingWithFile(os.path.join(root, filename))
    for dirname in dirs:
        doSomewthingWithDir(os.path.join(root, dirname))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #recursive
ADD COMMENT
Topic
Name
8+6 =