Add tally

This commit is contained in:
Sean C 2023-04-17 00:54:12 -04:00
parent 07fa4d8bb6
commit 702581687c

View File

@ -50,13 +50,16 @@ def returnduplicates(filehashes:dict):
return duplicates
def deleteDuplicates(duplicates):
ignored = []; deletion = []
for dupe in duplicates:
if len(dupe) > 2:
print(f"Ignored dupe eg {dupe[0]}")
print(f"IGNORED\n")
ignored.append()
elif len(dupe[0]) < len(dupe[1]) and "/" in dupe[0]:
input(f"Delete {dupe[1]} and keep {dupe[0]}?\n")
print(f"Deleting {dupe[1]} and keeping {dupe[0]}\n")
elif len(dupe[1]) < len(dupe[0]) and "/" in dupe[1]:
input(f"Delete {dupe[0]} and keep {dupe[1]}?\n")
print(f"Deleting {dupe[0]} and keeping {dupe[1]}\n")
print(f"To delete: {len(deletion)} Ignored: {len(ignored)})
def main():