ignore thumbs.db in media sync

This commit is contained in:
Damien Elmes 2012-03-16 17:11:13 +09:00
parent ef386d8698
commit b5cafd370f

View file

@ -388,9 +388,11 @@ create table log (fname text primary key, type int);
removed = []
# loop through on-disk files
for f in os.listdir(self.dir()):
# ignore folders
# ignore folders and thumbs.db
if os.path.isdir(f):
continue
if f.lower() == "thumbs.db":
continue
# newly added?
if f not in self.cache:
added.append(f)