adding hidden folder skipping

This commit is contained in:
ville rantanen
2013-09-30 08:32:40 +03:00
parent fc6f656664
commit 8fba0eec31
2 changed files with 5 additions and 8 deletions

View File

@@ -200,8 +200,8 @@ def get_md5(filename):
return hashlib.md5(open(filename,'rb').read(1024*1024*50)).hexdigest()
def clean_dirs(dirs):
for s in BADDIRS:
if s in dirs:
for s in dirs[:]:
if (s in BADDIRS) or (s.startswith(".")):
dirs.remove(s)
return dirs