crawl a folder python

Solutions on MaxInterview for crawl a folder python by the best coders in the world

showing results for - "crawl a folder python"
Carl
14 Jun 2019
1for root, dirs, files in os.walk('/tmp'):
2    if os.path.basename(root) != 'modules':
3        continue
4    data = [parse_file(os.path.join(root,f)) for f in files]