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.

Documentation

Currently implemented for Unix and Windows

Usage

Cargo.toml

toml [dependencies] standard_paths = "^0.3"

main.rs

```rust extern crate standard_paths;

use standardpaths::*; use standardpaths::LocationType::*;

fn main() { let sp = StandardPaths::newwithnames("app", "org"); println!("App data location: {:?}", sp.writable_location(AppLocalDataLocation)); } ```