Browse Source

check for destination and not source file extension when marking folder as existing

master
Constantin Fürst 2 years ago
parent
commit
705a8a9116
  1. 2
      libconv.py

2
libconv.py

@ -180,7 +180,7 @@ def prepare_destination(path: str) -> Tuple[str,bool]:
new_path = DST_FOLDER + sub_path new_path = DST_FOLDER + sub_path
mkdir(new_path) mkdir(new_path)
existing: bool = len(os.listdir(new_path)) != 0
existing: bool = len(get_files_with_ext(new_path, DST_FILE_EXT)) != 0
for img in images: for img in images:
img_name = img.replace(path, "") img_name = img.replace(path, "")

Loading…
Cancel
Save