more NFD
This commit is contained in:
parent
07cdab8c2d
commit
c862faddd1
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue