get_state_dir

Function get_state_dir 

Source
pub fn get_state_dir(local: bool) -> Result<PathBuf>
Expand description

Get the state directory path

Priority order:

  1. Environment variable RS_HACK_STATE_DIR (highest priority)
  2. –local-state flag (uses ./.rs-hack)
  3. Global default (uses system data directory)