Skip to main content

config_file_path

Function config_file_path 

Source
pub fn config_file_path() -> Option<PathBuf>
Expand description

Return the path to the global config file: ~/.recursive/config.toml. Returns None if the home directory cannot be determined.

Honours RECURSIVE_HOME for tests (matching paths::user_data_dir) before falling back to dirs::home_dir(). Without the RECURSIVE_HOME short-circuit, tests that pin HOME via PinnedHome still race with tests that mutate HOME directly (without holding the env lock) on macOS, where dirs::home_dir can re-resolve through getpwuid_r mid-test.