mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
ignore thumbs.db in media sync
This commit is contained in:
parent
ef386d8698
commit
b5cafd370f
1 changed files with 3 additions and 1 deletions
|
@ -388,9 +388,11 @@ create table log (fname text primary key, type int);
|
||||||
removed = []
|
removed = []
|
||||||
# loop through on-disk files
|
# loop through on-disk files
|
||||||
for f in os.listdir(self.dir()):
|
for f in os.listdir(self.dir()):
|
||||||
# ignore folders
|
# ignore folders and thumbs.db
|
||||||
if os.path.isdir(f):
|
if os.path.isdir(f):
|
||||||
continue
|
continue
|
||||||
|
if f.lower() == "thumbs.db":
|
||||||
|
continue
|
||||||
# newly added?
|
# newly added?
|
||||||
if f not in self.cache:
|
if f not in self.cache:
|
||||||
added.append(f)
|
added.append(f)
|
||||||
|
|
Loading…
Reference in a new issue