Skip to main content

resolve_data_dir

Function resolve_data_dir 

Source
pub fn resolve_data_dir(template: &str) -> Option<PathBuf>
Expand description

The data directory nsh.json "dataDir" names (template), which the desktop runners give the engine (crate::EngineConfig::data_dir): an absolute path, or ${homeDir} followed by one under this user’s home directory ($HOME; %USERPROFILE% on Windows). None for anything else (a relative path, .., another ${...}) and for ${homeDir} without a home: the app then keeps its data where it would without "dataDir", rather than somewhere relative to where it started.