Add explanatory comment and disregard hidden status to address review comments

This commit is contained in:
Sophist
2017-10-23 15:32:21 +01:00
committed by GitHub
parent 09195d5a91
commit 5cc8fea2c4

View File

@@ -367,7 +367,8 @@ class Tagger(QtWidgets.QApplication):
if ignore_hidden and is_hidden(filename):
log.debug("File ignored (hidden): %r" % (filename))
continue
if os.path.basename(filename).startswith(".smbdelete") and is_hidden(filename):
# Ignore .smbdelete* files which Applie iOS creates by renaming a file when it cannot delete it
if os.path.basename(filename).startswith(".smbdelete"):
log.debug("File ignored (.smbdelete): %r", filename)
continue
if ignoreregex is not None and ignoreregex.search(filename):