Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json, os, re
- #match files with extensions
- extChk = re.compile('\.(.){3}$')
- def getData(*args):
- for i in args:
- if extChk.match(i):
- print(i)
- # rootdirpath, dirnames, filenames
- for a,b,c in os.walk(walkRoot):
- for i in c:
- getData(os.path.join(a,i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement