workflow_cache

Function workflow_cache 

Source
pub fn workflow_cache() -> Option<PathBuf>
Expand description

The recommended directory for volatile workflow data.

This will only be populated if your workflow has a bundle id set.

§Examples

let cache = env::workflow_cache().unwrap();
println!("Workflow Cache:\n{cache:?}");
// Workflow Cache:
// /Users/John/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.example.workflow