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/csv.rs')
-rw-r--r--src/csv.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/csv.rs b/src/csv.rs
index dda9c88..fbe1b65 100644
--- a/src/csv.rs
+++ b/src/csv.rs
@@ -92,9 +92,10 @@ impl FlatMftEntryWithName {
let has_ads = entry_attributes
.iter()
- .filter(|a| a.header.type_code == MftAttributeType::DATA)
- .count()
- > 1;
+ .any(|a| {
+ a.header.type_code == MftAttributeType::DATA && a.header.name.len() > 0
+ });
+
FlatMftEntryWithName {
entry_id: entry.header.record_number,