Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Recursive Folder scan

import os
import sys

for root, subdirs, files in os.walk(path):

    for file in os.listdir(root):

        filePath = os.path.join(root, file)

        if os.path.isdir(filePath):
            pass

        else:
            f = open (filePath, 'r')
            # Do Stuff
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Recursive #Folder #scan
ADD COMMENT
Topic
Name
4+2 =