dirs
Index
Functions
fn cache(str) str;
fn cachefs(str) *fs::fs;
fn config(str) str;
fn configfs(str) *fs::fs;
fn data(str) str;
fn datafs(str) *fs::fs;
fn state(str) str;
fn statefs(str) *fs::fs;
Functions
fn cache
fn cache(prog: str) str;
Returns a directory suitable for cache files. The "prog" parameter should be
a descriptive name unique to this program. The return value is statically
allocated and will be overwritten on subsequent calls to any function in the
dirs module.
fn cachefs
fn cachefs(prog: str) *fs::fs;
Returns an fs::fs for cache files.
fn config
fn config(prog: str) str;
Returns a directory suitable for storing config files. The "prog" parameter
should be a descriptive name unique to this program. The return value is
statically allocated and will be overwritten on subsequent calls to any
function in the dirs module.
fn configfs
fn configfs(prog: str) *fs::fs;
Returns an fs::fs for storing config files. The "prog" parameter
should be a descriptive name unique to this program.
fn data
fn data(prog: str) str;
Returns a directory suitable for persistent data files. The "prog" parameter
should be a descriptive name unique to this program. The return value is
statically allocated and will be overwritten on subsequent calls to any
function in the dirs module.
fn datafs
fn datafs(prog: str) *fs::fs;
Returns an fs::fs for persistent data files. If "prog" is given, a unique
path for this program to store data will be returned.
fn state
fn state(prog: str) str;
Returns a directory suitable for storing program state data. The "prog"
parameter should be a descriptive name unique to this program. The return
value is statically allocated and will be overwritten on subsequent calls to
any function in the dirs module.
fn statefs
fn statefs(prog: str) *fs::fs;
Returns an fs::fs for storing program state data.