Fix the extract test
This commit is contained in:
parent
69599e1741
commit
32c54f7d6b
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ fn sanitize_filename(filename: &str) -> std::path::PathBuf
|
||||||
std::path::Path::new(no_null_filename)
|
std::path::Path::new(no_null_filename)
|
||||||
.components()
|
.components()
|
||||||
.filter(|component| *component != std::path::Component::ParentDir)
|
.filter(|component| *component != std::path::Component::ParentDir)
|
||||||
.fold(std::path::PathBuf::new("."), |mut path, ref cur| {
|
.fold(std::path::PathBuf::new(), |mut path, ref cur| {
|
||||||
path.push(cur.as_os_str());
|
path.push(cur.as_os_str());
|
||||||
path
|
path
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue