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/entry.rs')
-rw-r--r--src/entry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry.rs b/src/entry.rs
index 5935091..a4e3919 100644
--- a/src/entry.rs
+++ b/src/entry.rs
@@ -191,7 +191,7 @@ impl MftEntry {
/// Will prefer `Win32` file name attributes, and fallback to `Dos` paths.
pub fn find_best_name_attribute(&self) -> Option<FileNameAttr> {
let file_name_attributes: Vec<FileNameAttr> = self
- .iter_attributes()
+ .iter_attributes_matching(Some(vec![MftAttributeType::FileName]))
.filter_map(Result::ok)
.filter_map(|a| a.data.into_file_name())
.collect();