Skip to content

Commit 77f4f15

Browse files
REFACTOR: Minor changes in the 'Folder Size Tagger' Python Project
1 parent ba2b0e7 commit 77f4f15

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Folder Size Tagger/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def main():
658658
perform_safe_rename(path, new_name) # Rename directory safely avoiding collisions
659659

660660
print(
661-
f"{BackgroundColors.GREEN}Total files deleted: {BackgroundColors.CYAN}{DELETION_STATS['files_deleted']}{BackgroundColors.GREEN} | Total dirs deleted: {BackgroundColors.CYAN}{DELETION_STATS['dirs_deleted']}{BackgroundColors.GREEN} | Total deleted size: {BackgroundColors.CYAN}{convert_bytes_to_gb(DELETION_STATS['bytes_deleted']):.2f}GB{Style.RESET_ALL}"
661+
f"{BackgroundColors.GREEN}Total files deleted: {BackgroundColors.CYAN}{DELETION_STATS['files_deleted']}{BackgroundColors.GREEN} | Total dirs deleted: {BackgroundColors.CYAN}{DELETION_STATS['dirs_deleted']}{BackgroundColors.GREEN} | Total deleted size: {BackgroundColors.CYAN}{convert_bytes_to_gb(DELETION_STATS['bytes_deleted']):.2f} GB{Style.RESET_ALL}"
662662
) # Output aggregated deletion statistics
663663

664664
finish_time = datetime.datetime.now() # Get the finish time of the program

Folder Size Tagger/main_subdirs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def main():
831831
perform_safe_rename(path, new_name) # Rename directory safely avoiding collisions
832832

833833
print(
834-
f"{BackgroundColors.GREEN}Total files deleted: {BackgroundColors.CYAN}{DELETION_STATS['files_deleted']}{BackgroundColors.GREEN} | Total dirs deleted: {BackgroundColors.CYAN}{DELETION_STATS['dirs_deleted']}{BackgroundColors.GREEN} | Total deleted size: {BackgroundColors.CYAN}{convert_bytes_to_gb(DELETION_STATS['bytes_deleted']):.2f}GB{Style.RESET_ALL}"
834+
f"{BackgroundColors.GREEN}Total files deleted: {BackgroundColors.CYAN}{DELETION_STATS['files_deleted']}{BackgroundColors.GREEN} | Total dirs deleted: {BackgroundColors.CYAN}{DELETION_STATS['dirs_deleted']}{BackgroundColors.GREEN} | Total deleted size: {BackgroundColors.CYAN}{convert_bytes_to_gb(DELETION_STATS['bytes_deleted']):.2f} GB{Style.RESET_ALL}"
835835
) # Output aggregated deletion statistics
836836

837837
finish_time = datetime.datetime.now() # Get the finish time of the program

0 commit comments

Comments
 (0)