Enhanced Directory Management & Summarization v0.2.2
Pre-release
Pre-release
No Breaking Changes. Safe to Bump
DirectoryItem Class
- Add
content_hashto detect changes to file content
DirectoryStructure Class
- Added
get_files()method to return a list of DirectoryItems that are all of metadata typefile - Added
get_directories()method to return a list of DirectoryItems that are all of metadata typedirectory - Improved
get_files()method to handle lists of strings for exclusions or inclusions by converting them intoIgnorePatternobjects - Added error handling and logging for
get_files()method
PathIgnorer Class
- Refactored to manage ignoring patterns without focusing on root directories
- Removed root directory specific logic
Logger
- Updated
log_ignored_paths()method to show the total overall ignored files and folders instead of just the root
Summarization
- Added more detailed
INFOlogs including directory size and files being summarized (optional argument) - Cache summaries by checking if the DirectoryItem's
content_hashhas changed
Full Changelog: v0.2.1...v0.2.2