From de051f222d0c21de3f5a6807b118015315feacad Mon Sep 17 00:00:00 2001 From: starnakin Date: Fri, 2 May 2025 04:28:29 -0400 Subject: [PATCH] fix: copy only .NEF --- tools/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/copy.py b/tools/copy.py index 06fb347..c3db6db 100644 --- a/tools/copy.py +++ b/tools/copy.py @@ -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: