open_from_path

Function open_from_path 

Source
pub fn open_from_path<P: AsRef<Path>>(
    config_folder_path: P,
    file_name: &str,
) -> Result<Config, Error>
Expand description

Opens or create the given JSON config file within the given folder path

§Arguments

  • config_folder_path - Path to the config folder, will create any missing folders
  • file_name - Name of the config file, will create the file if it doesn’t exist