This commit is contained in:
j 2019-01-14 17:34:28 +05:30
commit c862faddd1
2 changed files with 6 additions and 2 deletions

View file

@ -150,6 +150,8 @@ def run_scan():
if file:
f1 = file.fullpath()
f2 = os.path.join(prefix, f)
f1 = unicodedata.normalize('NFD', f1)
f2 = unicodedata.normalize('NFD', f2)
if f1 != f2 and os.path.exists(f1) and os.path.exists(f2):
logger.debug('file exists in multiple locations %s', id)
logger.debug('"%s" vs "%s"', f1, f2)
@ -161,6 +163,8 @@ def run_scan():
if file:
f1 = file.fullpath()
f2 = os.path.join(prefix, f)
f1 = unicodedata.normalize('NFD', f1)
f2 = unicodedata.normalize('NFD', f2)
if f1 != f2 and os.path.exists(f1) and os.path.exists(f2):
logger.debug('"%s" vs "%s"', f1, f2)
os.chmod(f2, stat.S_IWRITE)