A modular and efficient Python tool to analyze, search, and export details about file system contents. Built for developers, students, and system admins who want a better understanding of their directory structure and file usage.
- π Recursively scans directories
- π Calculates file system statistics
- π Supports file searching by name or extension
- π€ Exports data in JSON format
- π§± Modular code structure for easy maintenance
file_system_analyzer/
βββ main.py # Entry point for CLI usage
βββ _main.py # Alternative or test entry
βββ analyzer/
βββ traversal.py # Handles directory traversal
βββ statistics.py # Gathers file system stats
βββ search.py # Provides search capabilities
βββ json_export.py # Handles exporting results
βββ utils.py # Utility functions
- Clone the repo
git clone https://github.com/Ay-developerweb/file-system-analyzer.git
cd file-system-analyzer
- (Optional) Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
If no
requirements.txt
exists, the project likely uses only standard libraries.
python main.py [target_directory]
If no directory is passed, it defaults to the current working directory.
The tool supports exporting results to a .json
file:
python main.py /path/to/dir --export report.json
Feel free to fork this repo and submit pull requests. Ideas and improvements are always welcome!
This project is licensed under the MIT License.
Adediran Ayomide Mathew
π§ ayomideadediran45@gmail.com
π GitHub Profile