Skip to main content

lock_path

Function lock_path 

Source
fn lock_path(config_dir: &Path, app_support: &Path) -> PathBuf
Expand description

Machine-local lock path for config_dir under app_support: <app_support>/locks/<hex-hash-of-config-dir>.lock. The config-dir path is canonicalised first (best-effort) so symlinked / trailing-slash variants resolve to one lock.