Skip to main content

id_bearing_suffix

Function id_bearing_suffix 

Source
fn id_bearing_suffix(path: &Path) -> Option<PathBuf>
Expand description

The trailing part of a send-copy’s host path that carries its attachment id: <sha256>.… for an image or other derived file (prompt.rs’s module doc), or named/<sha256>/<realname> for any other kind. None for a path with neither shape — a send-copy always has one, so this only trips on a path this function doesn’t recognize, which must not be guessed at.