Expand description
What kind of file an attachment is, decided by content first and the
name’s extension second (a .txt that is really a ZIP is not text).
docs/specs/SPEC_AGENT_PANE_FILE_ATTACHMENTS_2026_09_26.md §5.
Enums§
Functions§
- classify
- Classify the file at
path, whose display name isname. - classify_
bytes classifyon the first bytes, with the ZIP inspection injected (tests).- extension_
of - The file’s own extension, lowercased, if it’s a short plain one.