pathos 0.3.0

A natural API for handling OS-specific user or system directories, including iOS and Android.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! windows_path {
    ($folderid:path) => {{
        static CELL: once_cell::sync::OnceCell<Option<PathBuf>> = once_cell::sync::OnceCell::new();
        CELL.get_or_init(|| match windirs::known_folder_path($folderid) {
            Ok(path) => Some(path),
            Err(_) => None,
        })
    }};
}

pub mod system;
pub mod user;