Crates.io | pathos |
lib.rs | pathos |
version | 0.3.0 |
source | src |
created_at | 2020-05-15 15:54:37.821197 |
updated_at | 2022-07-08 08:17:08.906564 |
description | A natural API for handling OS-specific user or system directories, including iOS and Android. |
homepage | |
repository | https://github.com/bbqsrc/pathos |
max_upload_size | |
id | 241912 |
size | 68,276 |
noun From Ancient Greek πάθος (páthos, “suffering”). The quality or property of anything which touches the feelings or excites emotions and passions, especially that which awakens tender emotions, such as pity, sorrow, and the like; contagious warmth of feeling, action, or expression; pathetic quality.
A natural API for finding OS-specific user or system directories, regardless of the operating system.
pathos
specifically supports iOS and Android's idiosyncratic handling of 'user' directories.
pathos
supports Unicode-safe URL paths for file:
, and a special custom container:
scheme on iOS and Android. pathos
can convert between ordinary Path
types and these Iri
types with ease, simplifying saving paths in a configuration system without worrying about OsString
problems.
Don't care what platform you're building for and just want a project directory in the right place? pathos::system
and pathos::user
re-export the host platform's submodule.
Sometimes you have to care what platform you're on for special-cased weirdness. In those cases, the appropriate APIs are available on the relevant OS submodule.
XDG is the default mechanism for handling user directories on Linux, and can be opted into on other platforms by using the pathos::xdg
module.
Add the following to your Cargo.toml:
pathos = "0.2"
Licensed under either of
at your option.