Skip to content

Commit

Permalink
Merge pull request #42 from omerbenamram/bugfix/only-consider-directo…
Browse files Browse the repository at this point in the history
…ries-as-valid-parents

fix
  • Loading branch information
omerbenamram authored Apr 14, 2020
2 parents 5c3ce2e + 3cb88cd commit 48e2c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ strategy:
target: 'x86_64-pc-windows-msvc'
rustup_toolchain: stable
mac-stable:
imageName: 'macos-10.13'
imageName: 'macOS-10.14'
target: 'x86_64-apple-darwin'
rustup_toolchain: stable
linux-stable:
Expand Down
3 changes: 2 additions & 1 deletion src/mft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 48e2c6f

Please sign in to comment.