pruneleaves = set(map(lambda x: os.path.split(x)[1], prune))
for rootdir in dirlist:
rootdepth = rootdir.count("/")
- for root, dirs, files in os.walk(rootdir):
+ for root, dirs, files in os.walk(rootdir, followlinks=True):
# prune
check_prune = False
for d in dirs: