Skip to content

Commit

Permalink
added to summary output: "Left in Scan Folder"
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed Jun 17, 2024
1 parent b017116 commit f7ad29e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions duplicate_files_in_folders/utils_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@ def output_results(args: Namespace, files_moved: int, files_created: int, delete
f"Cache hits: {hash_manager.persistent_cache_hits + hash_manager.temporary_cache_hits}"
logger.debug(cache_hits)

files_left = len(scan_stats) - files_moved - duplicate_scan_files_moved
# Detailed summary
summary_lines = {
'Scan Folder Files': f"{format_number_with_commas(len(scan_stats)) if scan_stats else 'N/A'} files",
'Reference Folder Files': f"{format_number_with_commas(len(ref_stats)) if ref_stats else 'N/A'} files",
'Files Moved': f"{format_number_with_commas(files_moved)} files",
'Files Created': f"{format_number_with_commas(files_created)} copies",
'Left in Scan Folder': f"{format_number_with_commas(files_left)} files",
}

if duplicate_scan_files_moved:
Expand Down

0 comments on commit f7ad29e

Please sign in to comment.