Back to Course
Python Essentials: The Engineering Approach
Module 15 of 20
15. Final Capstone
Task: Build a "File Analyzer" CLI tool.
Requirements:
- Accept a folder path as an argument (
argparse). - Recursively Find all files.
- Statistics: Count extension types (.py, .txt) and total size.
- Error Handling: Handle permission errors.
- Save report to a JSON file.
Architecture:
analyzer.py: Main entry point.core/:scanner.py: File system walking.stats.py: Math logic.
tests/: Unit tests.
Go forth and build.