pub fn to_journal_path(aim_path: &Path) -> Result<PathBuf>Expand description
Converts an .aim file path to the corresponding .jnl file path.
This function takes an AIM file path and returns the corresponding journal file path by replacing the .aim extension with .jnl.
§Arguments
aim_path- Path to the .aim file
§Returns
Ok(PathBuf)with the corresponding .jnl file pathErrif the file path is invalid
§Examples
use std::path::Path;
use aimx::aim::to_journal_path;
let jnl_path = to_journal_path(Path::new("examples/workflow.aim")).unwrap();
assert_eq!(jnl_path, Path::new("examples/workflow.jnl"));