Skip to content

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

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

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.

Source: crates/calternal-notes-core/src/attachments.rs:48