Less verbose outputs for more clarity
This commit is contained in:
+5
-12
@@ -72,20 +72,13 @@ def scan_photos(root_dir, base_target_path):
|
|||||||
|
|
||||||
file_info_list.append((file_path, date_time_str, destination_dir))
|
file_info_list.append((file_path, date_time_str, destination_dir))
|
||||||
|
|
||||||
# Print all items and their proposed destinations
|
# Print all items in compact format
|
||||||
print("\n========================================================")
|
print()
|
||||||
print("--- File Name & Proposed Destination Directory ---")
|
|
||||||
print("========================================================\n")
|
|
||||||
|
|
||||||
for file_path, date_time_str, dest_dir in file_info_list:
|
for file_path, date_time_str, dest_dir in file_info_list:
|
||||||
print(f"File: {os.path.basename(file_path)}")
|
filename = os.path.basename(file_path)
|
||||||
print(f" -> Extracted Date: {date_time_str}")
|
print(f"{filename} -> {dest_dir}")
|
||||||
print(f" -> Proposed Destination Directory: {dest_dir}")
|
|
||||||
print("-" * 40)
|
|
||||||
|
|
||||||
print(f"\n========================================================")
|
print(f"\nFound {len(file_info_list)} files.")
|
||||||
print(f"--- Scan complete. Found {len(file_info_list)} files. ---")
|
|
||||||
print("Files with the same date will point to the same destination directory.")
|
|
||||||
|
|
||||||
# Ask for confirmation
|
# Ask for confirmation
|
||||||
response = input("\nDo you want to copy these items? (y/yes): ").strip().lower()
|
response = input("\nDo you want to copy these items? (y/yes): ").strip().lower()
|
||||||
|
|||||||
Reference in New Issue
Block a user