Merge pull request #542 from rustic-rs/windows-prefix

Windows: backup path prefix
This commit is contained in:
aawsome 2023-03-27 20:23:08 +02:00 committed by GitHub
commit 4fad663abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,14 @@ where
if self.path.pop() {
Some(TreeType::EndTree)
} else {
None
// Check if we still have a path prefix open...
match self.path.components().next() {
Some(std::path::Component::Prefix(..)) => {
self.path = PathBuf::new();
Some(TreeType::EndTree)
}
_ => None,
}
}
}
Some((path, node, _)) => {