Crate directories [] [src]

The directories crate is

  • a tiny library with a minimal API (2 structs, 3 factory functions, getters)
  • that provides the platform-specific, user-accessible locations
  • for storing configuration, cache and other data
  • on Linux, Windows (≥ Vista) and macOS.

The library provides the location of these directories by leveraging the mechanisms defined by

Structs

BaseDirs

BaseDirs provides paths to standard directories, following the conventions of the operating system the library is running on.

ProjectDirs

ProjectDirs computes the location of cache, config or data directories for a specific application, which are derived from the standard directories and the name of the project/organization.