Expand description
Shared utility helpers for migration-aware command behavior.
Constants§
- TRASHINFO_
EXTENSION - File extension used by trash info files.
- TRASHINFO_
TIME_ FORMAT - Deletion date format commonly used by Trash info metadata.
Functions§
- build_
unique_ basename - Builds a deterministic, namespaced filename for trash files.
- canonical_
or_ relaxed - Returns a normalized path by resolving
.and..segments where possible. - format_
duration - Produces a human readable timeout string from duration.
- parse_
trash_ datetime - Parses an ISO-like deletion date string into a UTC datetime.
- print_
size - Human readable size rendering shared across commands.
- sanitize_
user_ path - Returns a user-safe, trimmed path string that can be used in logs and messages.
- serialize_
system_ time - Serializes a UTC datetime into the repository-standard trash format.