Expand description
Upload-related helper functions: MIME detection, timezone fixup, file timestamps.
Pure utility functions shared by the upload pipeline. Includes IANA
timezone resolution from /etc/localtime or $TZ, ISO 8601
formatting, and filesystem timestamp normalization.
FunctionsΒ§
- apply_
asset_ πtimezone_ fixup - Make a PUT request to the server to update the timezone offset of a specific asset.
- file_
timestamps π - Retrieve and normalize the creation and modification timestamps of a local file.
- local_
timezone_ πname - Resolve the userβs current local timezone name (IANA format) from system files or environment.
- looks_
like_ πiana_ timezone - Check if the timezone name string strictly matches IANA zone style.
- mime_
for_ πpath - Resolve the standard MIME type for a given local file path.
- normalize_
file_ πtimestamps - Coalesce and normalize creation/modification timestamps using standard rules.
- system_
time_ πto_ unix_ secs - Convert a standard
SystemTimeto standard unix epoch seconds. - unix_
to_ πutc_ iso8601 - Convert standard unix epoch seconds to standard UTC ISO 8601 formatted string.