Skip to content

Summarize directories and S3 buckets file sizes and detect large files using Python!

Notifications You must be signed in to change notification settings

jeronimoluza/directorysizing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory and File Size Analyzer

This project analyzes the sizes and counts of files within directories and S3 buckets specified in config.yaml and outputs two CSV files:

  • directory_summary.csv: Summarizes file counts and total sizes per folder.
  • file_summary.csv: Lists file sizes and their parent folder.

How to Run

  1. Specify directories and size thresholds in configs/config.yaml.
  2. Run the project with:
make run

Project Structure

  • run.py: Entry point to execute the analysis.
  • configs/config.yaml: Configuration file specifying directories and thresholds.
  • Makefile: Allows running the project with make.
  • src/functions.py: File and directory extraction functions.
  • src/utils.py: Utility functions, such as reading config.yaml.

About

Summarize directories and S3 buckets file sizes and detect large files using Python!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published