unlink duplicates
This commit is contained in:
parent
56df24baad
commit
80b3ff5b91
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ def run_scan():
|
||||||
f2 = os.path.join(prefix, f)
|
f2 = os.path.join(prefix, f)
|
||||||
if f1 != f2 and os.path.exists(f1) and os.path.exists(f2):
|
if f1 != f2 and os.path.exists(f1) and os.path.exists(f2):
|
||||||
logger.debug('"%s" vs "%s"', f1, f2)
|
logger.debug('"%s" vs "%s"', f1, f2)
|
||||||
|
os.chmod(f2, stat.S_IWRITE)
|
||||||
|
os.unlink(f2)
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
ids.add(id)
|
ids.add(id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue