Displays storage statistics for media files.
Queries the media table and prints aggregate counts and sizes grouped by collection and by storage disk.
Usage
$ mix phx_media_library.stats
Options
--include-trashed Include soft-deleted records in the report
--collection NAME Filter to a specific collection name
--type TYPE Filter to a specific mediable_type (e.g. "posts")Examples
# Show all stats
$ mix phx_media_library.stats
# Include trashed records
$ mix phx_media_library.stats --include-trashed
# Filter to a single collection
$ mix phx_media_library.stats --collection photos
# Filter to a single model type
$ mix phx_media_library.stats --type albums