fix: copy only .NEF

This commit is contained in:
starnakin 2025-05-02 04:28:29 -04:00
parent ff56bac2cd
commit de051f222d

View File

@ -33,7 +33,7 @@ def main():
copy_path = os.path.join(output_folder, "ph_copy.txt")
copy_info: dict[str, str] = get_copy_info(copy_path)
files: list[str] = [os.path.join(input_folder, f) for f in os.listdir(input_folder)]
files = [f for f in files if os.path.isfile(f)]
files = [f for f in files if os.path.isfile(f) and f.endswith(".NEF")]
with Bar("copying...", max=len(files)) as bar:
for file in files:
with open(file, 'rb') as f: