Windows: backup path prefix

This commit is contained in:
Alexander Weiss 2023-03-27 20:15:35 +02:00
parent 6374a888a9
commit a920aaa912

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, _)) => {