Ayu-hack / Hacktoberfest2024-1

This is repo to create some pull requests and completing hacktoberfest 2024 easily. All request will be accepted. Genuine Pull Request will promoted also. #hacktobefest #hacktobefest2024 #hacktobefest-accepted Resources
46 stars 467 forks source link

Disk Usage Analyzer #155

Closed pratikj697 closed 1 month ago

pratikj697 commented 1 month ago

Develop a Python script that analyzes disk usage in a directory and provides insights on the space consumed by each file and subdirectory. It should also be capable of detecting the largest files, and suggest possible candidates for deletion to free up space.

Requirements:

  1. Directory Traversal: Traverse all files and subdirectories in a given directory and compute their sizes.
  2. Sorting: Sort files by size in descending order, and display the largest files.

Edge Cases: Handle cases where certain files or directories are inaccessible (permissions error).

Please assign this task to me under HacktoberFest 2024.

Ayu-hack commented 1 month ago

Please consider contributing to this repo: https://github.com/Ayu-hack/GeeksforGeeks-POTD-Solution Sorry for the inconvenience, and thank you for your understanding! 🙏