Skip to main content

set_custom_config_path

Function set_custom_config_path 

Source
pub fn set_custom_config_path(path: Option<&Path>) -> Result<()>
Expand description

This function sets (or clears, when passed None) the custom config folder and initializes it.

The choice is persisted to the redirect file in the default config path. The new folder is created and populated right away, but the running program keeps using the old one until it’s restarted.