Skip to main content

Module kind

Module kind 

Source
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§

FileKind

Functions§

classify
Classify the file at path, whose display name is name.
classify_bytes
classify on the first bytes, with the ZIP inspection injected (tests).
extension_of
The file’s own extension, lowercased, if it’s a short plain one.