Answers for "crawl a folder python"

0

crawl a folder python

for root, dirs, files in os.walk('/tmp'):
    if os.path.basename(root) != 'modules':
        continue
    data = [parse_file(os.path.join(root,f)) for f in files]
Posted by: Guest on April-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language