Function app_dirs2::data_root [−][src]
pub fn data_root(t: AppDataType) -> Result<PathBuf, AppDirsError>
Expand description
Creates (if necessary) and returns path to top-level data directory for provided data type.
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.