mirror of
https://github.com/thegeneralist01/archivr
synced 2026-05-30 08:36:47 +02:00
refactor: simplify archive source parsing
This commit is contained in:
parent
cb0abbb760
commit
514a5e99c7
4 changed files with 205 additions and 283 deletions
|
|
@ -277,7 +277,10 @@ fn archive_asset_reference(
|
|||
}
|
||||
|
||||
let relative_path = local::archive_staged_file(&absolute_path, store_path)?;
|
||||
let relative_path = relative_path.to_string_lossy().replace('\\', "/");
|
||||
let relative_path = relative_path
|
||||
.relative_path()
|
||||
.to_string_lossy()
|
||||
.replace('\\', "/");
|
||||
archived_assets.insert(key, relative_path.clone());
|
||||
|
||||
Ok(relative_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue