CleanupMixin¶
Provides cleanup functionality for the file manager. The CleanupMixin contains operations for cleaning empty sections, removing nulls, and compacting data.
Methods¶
clean_empty_sections¶
Remove empty sections from the data.
Returns:
- int: Number of empty sections removed
Example:
remove_nulls¶
Remove null/None values from the data.
Returns:
- int: Number of null values removed
Example:
compact¶
Optimize the data structure by removing empty sections and nulls.
Returns:
- Dict[str, int]: Dictionary with counts of operations performed
Example: