Skip to main content

stored_extension

Function stored_extension 

Source
fn stored_extension(kind: FileKind, name: &str) -> String
Expand description

The extension a new original is stored under. It follows the content where the content decides it (image formats, PDF, SVG, RTF), and otherwise the user’s extension if it fits the kind (docx vs odt vs doc, mp3 vs wav, …). Text and unknown files are bin: the same bytes can arrive as notes.txt and script.py, and agents get a correctly named link per delivery instead (named_link).