Added name duplication prevention

This commit is contained in:
R Dittberner 2025-10-21 23:16:47 +02:00
parent 74fe75eea0
commit 010c555e5a

View file

@ -82,6 +82,9 @@ def main():
else:
category: str = ""
path: str = outputFolder + category + "/" + newname + extension
if os.path.exists(path):
newname = input("Name already in use, please choose another: ")
path = outputFolder + category + "/" + newname + extension
shutil.move(inputFolder + file, path)
if args.reformat:
if extension != ".mp4":