Skip to content

Enhanced Directory Management & Summarization v0.2.2

Pre-release
Pre-release

Choose a tag to compare

@nashdean nashdean released this 21 Dec 02:45
· 26 commits to master since this release

No Breaking Changes. Safe to Bump

DirectoryItem Class

  • Add content_hash to detect changes to file content

DirectoryStructure Class

  • Added get_files() method to return a list of DirectoryItems that are all of metadata type file
  • Added get_directories() method to return a list of DirectoryItems that are all of metadata type directory
  • Improved get_files() method to handle lists of strings for exclusions or inclusions by converting them into IgnorePattern objects
  • 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 INFO logs including directory size and files being summarized (optional argument)
  • Cache summaries by checking if the DirectoryItem's content_hash has changed

Full Changelog: v0.2.1...v0.2.2