Skip to main content

resolve

Function resolve 

Source
pub fn resolve(path: impl AsRef<Path>) -> PathBuf
Expand description

Resolve a path an app author wrote: a relative path against the app directory, an absolute path unchanged. It is the rule the runtime already applies to the paths its script commands carry, so "data/tasks.json" names the same file wherever the app was started from.