workflow_cache_or_default

Function workflow_cache_or_default 

Source
pub fn workflow_cache_or_default() -> PathBuf
Expand description

The workflow cache directory or sensible default value.

§Panics

Panics if the user’s home directory cannot be determined.

§Examples

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