MCPcopy Create free account
hub / github.com/OpenKeyring/oak-keyring / data_dir

Function data_dir

src/paths.rs:70–75  ·  view source on GitHub ↗

Returns the XDG data directory for oak-keyring. Follows `$XDG_DATA_HOME` environment variable with fallback to `~/.local/share/oak-keyring/`. Returns `None` if home directory cannot be determined. # Examples ```rust use oak_keyring::paths::data_dir; if let Some(data) = data_dir() { println!("Data directory: {:?}", data); } ```

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

mainFunction · 0.85
db_pathFunction · 0.85
key_pathFunction · 0.85
ensure_dirsFunction · 0.85

Calls 1

data_dir_fromFunction · 0.85

Tested by

no test coverage detected