pub fn app_dir(
t: AppDataType,
app: &AppInfo,
path: &str
) -> Result<PathBuf, AppDirsError>
Expand description
Creates (if necessary) and returns path to app-specific data subdirectory for provided data type and subdirectory path.
The path
parameter should be a valid relative path separated by
forward slashes (/
).
If the directory structure does not exist, this function will recursively
create the full hierarchy. Therefore, a result of Ok
guarantees that the
returned path exists.