calternal_notes_core::attachments
Map each attachment purpose and file type to its default Home folder.
Keep this table in the shared content core. The Files Plugin calls it for uploads, and the Notes Plugin calls it for images stored with web clips. Folder names never assign meaning to a file after the upload.
Source: crates/calternal-notes-core/src/attachments.rs
Functions
Section titled “Functions”attachment_folder
Section titled “attachment_folder”pub fn attachment_folder( filename: &str, purpose: &str, screenshot_destination: Option<&str>,) -> Option<&'static str>Return the default folder for one known upload purpose.
Source: crates/calternal-notes-core/src/attachments.rs:20
web_clip_attachment_path
Section titled “web_clip_attachment_path”pub fn web_clip_attachment_path( note_id: &str, ordinal: usize, extension: &str,) -> Result<RelPath, String>Build the confined destination of an image captured for a web clip.