Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mft.rs')
-rw-r--r--src/mft.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mft.rs b/src/mft.rs
index 4cb2c91..40bc8cd 100644
--- a/src/mft.rs
+++ b/src/mft.rs
@@ -99,7 +99,8 @@ impl<T: ReadSeek> MftParser<T> {
} else {
let path = match self.get_entry(parent_entry_id).ok() {
Some(parent) => match self.get_full_path_for_entry(&parent) {
- Ok(Some(path)) => path,
+ Ok(Some(path)) if parent.is_dir() => path,
+ Ok(Some(_)) => PathBuf::from("[Unknown]"),
// I have a parent, which doesn't have a filename attribute.
// Default to root.
_ => PathBuf::new(),