Function app_dirs::data_root
[−]
[src]
pub fn data_root(t: AppDataType) -> Result<PathBuf, AppDirsError>
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.