FFMpeg-Compressor: Fix for duplicated file algorithm
This commit is contained in:
parent
d3c8b43b49
commit
0a7e62477a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ def add_unprocessed_files(orig_folder):
|
|||
for folder, folders, files in os.walk(orig_folder):
|
||||
for file in files:
|
||||
new_folder = f"{folder}".replace(orig_folder, f"{orig_folder}_compressed")
|
||||
if len(glob(f"{folder}/{os.path.splitext(file)[0]}*")) != 1:
|
||||
if len(glob(f"{folder}/{os.path.splitext(file)[0]}.*")) > 1:
|
||||
if len(glob(f"{new_folder}/{file}")):
|
||||
copyfile(f"{folder}/{file}", f"{new_folder}/{file} (copy)")
|
||||
printer.warning(f'Duplicate file has been found! Check manually this files - "{file}", "{file} (copy)"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue