-- Example Lua filter callback for s3rm-rs.
--
-- Define a function named `filter(obj)` that returns true for objects
-- that should be deleted, or false to skip them.
--
-- Available fields on the `obj` table:
-- obj.key (string) - Object key (e.g., "logs/2024/access.log")
-- obj.last_modified (string) - ISO-8601 timestamp
-- obj.version_id (string) - Version ID (nil for unversioned)
-- obj.e_tag (string) - Entity tag (MD5 hash)
-- obj.is_latest (boolean) - Whether this is the latest version
-- obj.is_delete_marker (boolean) - Whether this is a delete marker
-- obj.size (number) - Object size in bytes