Skip to main content

Module data_dir

Module data_dir 

Source
Expand description

Runtime resolution of the user-data directory for yui.

Lookup order:

  1. $YUI_DATA_DIR if set.
  2. Platform user-data dir via the directories crate (e.g. ~/Library/Application Support/yui/ on macOS).

Subdirectories under the data dir partition the data by kind, e.g. <data_dir>/links/3_1.json, <data_dir>/braid/3_1.json. The set of kinds is open — callers pass the subdirectory name they want.

Constants§

ENV_VAR

Functions§

load_json
resolve_data_dir