fn construct_path_from_app_data() -> anyhow::Result<PathBuf> {
    let proj_dir = ProjectDirs::from(ID_QUALIFIER, ID_ORGANIZATION, ID_APPLICATION)
        .context("Failed to lookup settings folder in the Windows Known Folder API.")?;

    let mut path = PathBuf::from(proj_dir.config_dir());
    path.push(SETTINGS_FILE);

    Ok(path)
}
/// Generate settings path from windows's appdata folder
///
/// Path should look like `%APPDATA%\ID_ORGANIZATION\ID_APPLICATION\config\pass4thewin.toml`
Generate settings path from windows's appdata folder
Path should look like `%APPDATA%\ID_ORGANIZATION\ID_APPLICATION\config\pass4thewin.toml`
Generate settings path from windows ' s appdata folder Path should look like ` %APPDATA% \ ID_ORGANIZATION \ ID_APPLICATION \ config \ pass4thewin . toml `
fn construct_path_from_app_data() -> anyhow::Result<PathBuf> {
    let proj_dir = ProjectDirs::from(ID_QUALIFIER, ID_ORGANIZATION, ID_APPLICATION)
        .context("Failed to lookup settings folder in the Windows Known Folder API.")?;
    let mut path = PathBuf::from(proj_dir.config_dir());
    path.push(SETTINGS_FILE);
    Ok(path)
}
fn construct_path_from_app_data ( ) -> anyhow :: Result < PathBuf > { let proj_dir = ProjectDirs :: from ( ID_QUALIFIER , ID_ORGANIZATION , ID_APPLICATION ) . context ( " " ) ? ; let mut path = PathBuf :: from ( proj_dir . config_dir ( ) ) ; path . push ( SETTINGS_FILE ) ; Ok ( path ) }
Generate settings path from windows's appdata folder
Path should look like `%APPDATA%\ID_ORGANIZATION\ID_APPLICATION\config\pass4thewin.toml`
Generate settings path from windows ' s appdata folder Path should look like ` %APPDATA% \ ID_ORGANIZATION \ ID_APPLICATION \ config \ pass4thewin . toml `