Function app_dirs::get_app_root
source · [−]pub fn get_app_root(
t: AppDataType,
app: &AppInfo
) -> Result<PathBuf, AppDirsError>
Expand description
Returns (but does not create) path to app-specific data directory for provided data type.
A result of Ok
means that we determined where the data SHOULD go, but
it DOES NOT guarantee that the directory actually exists. (See
app_root
.)