1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-07 13:59:34 +00:00

Remove Windows silly 'thumbs.db' too

This commit is contained in:
Ciro Mattia Gonano
2013-04-11 12:33:14 +02:00
parent f0afa1fff2
commit b972e4c746

View File

@@ -557,7 +557,7 @@ def slugify(value):
def sanitizeTree(filetree):
for root, dirs, files in os.walk(filetree):
for name in files:
if name.startswith('.'):
if name.startswith('.') or name.lower() == 'thumbs.db':
os.remove(os.path.join(root, name))
else:
splitname = os.path.splitext(name)