From 091cfe55623a0aa33ed78c62d99b9c0b0c36dcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20R=C3=A4s=C3=A4nen?= Date: Sun, 19 Apr 2026 14:52:18 +0300 Subject: [PATCH] Less verbose outputs for more clarity --- photoimport.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/photoimport.py b/photoimport.py index dc6fe78..5efe366 100644 --- a/photoimport.py +++ b/photoimport.py @@ -72,20 +72,13 @@ def scan_photos(root_dir, base_target_path): file_info_list.append((file_path, date_time_str, destination_dir)) - # Print all items and their proposed destinations - print("\n========================================================") - print("--- File Name & Proposed Destination Directory ---") - print("========================================================\n") - + # Print all items in compact format + print() for file_path, date_time_str, dest_dir in file_info_list: - print(f"File: {os.path.basename(file_path)}") - print(f" -> Extracted Date: {date_time_str}") - print(f" -> Proposed Destination Directory: {dest_dir}") - print("-" * 40) + filename = os.path.basename(file_path) + print(f"{filename} -> {dest_dir}") - print(f"\n========================================================") - print(f"--- Scan complete. Found {len(file_info_list)} files. ---") - print("Files with the same date will point to the same destination directory.") + print(f"\nFound {len(file_info_list)} files.") # Ask for confirmation response = input("\nDo you want to copy these items? (y/yes): ").strip().lower()