Here is a Python script that acts as a file size analyzer for large folders. It recursively scans all files in a given directory, calculates their sizes, and provides a summarized output sorted by size.
Features:
-
Recursively traverses all files and subfolders.
-
Calculates size of each file and aggregates sizes per folder.
-
Shows top 10 largest files and folders.
-
Displays total size in a human-readable format.
-
Handles permissions and missing files gracefully.
Usage:
Save the script as folder_size_analyzer.py and run from the command line:
Let me know if you want a GUI version or CSV export functionality.
Share this Page your favorite way: Click any app below to share.