Y2R6OOYWSW6WUQMWWO4I2COCACW72VQ4EBFYJPCSGN7FSOMV5J5AC
let destination = relative_destination.as_ref().map_or_else(
|| file.to_path_buf(),
|relative_destination| {
let destination = relative_destination.to_path(&self.archive_directory);
Utf8PathBuf::from_path_buf(destination).expect("path to be UTF-8")
},
);
let destination = archive::file_name(importer, file)?;
if let Some(path) = relative_destination {
for directive in &mut extracted_directives {
directive.add_meta(common_keys::IMPORTED_FROM, path.as_str());
}
for directive in &mut extracted_directives {
directive.add_meta(common_keys::IMPORTED_FROM, destination.as_str());