Crate standard_paths

Source
Expand description

§Standard Paths

A Rust library providing methods for accessing standard paths on the local filesystem (config, cache, user directories and etc.).

It’s a port of QStandardPaths class of the Qt framework.

§Usage

use standard_paths::{LocationType, StandardPaths};

let sp = StandardPaths::new("app", "org");
println!("{:?}", sp.writable_location(LocationType::AppLocalDataLocation));

Macros§

default_paths
Constructs a new StandardPaths with the application name derived from the CARGO_PKG_NAME variable.

Structs§

StandardPaths
Stores application and organization names and provides all the crate methods.

Enums§

LocateOption
Enumerates the locate option type.
LocationType
Enumerates the standard location type.