pub fn generate_path_and_key(
    path: &Path,
    directory: &Path,
    value: Option<String>
) -> Result<(String, String)>