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:
authorOmer Ben Amram <omerbenamram@gmail.com>2019-06-19 23:45:59 +0300
committerOmer Ben Amram <omerbenamram@gmail.com>2019-06-19 23:45:59 +0300
commita16f860819b2bc69bf8ca7580c361429c7d35b5c (patch)
treeac86006af66e6f9f28b5cb2ae8c903456d84df6c
parent7f590117e6a9b7496a5a8987c8ce69494eaad8fc (diff)
fix ADS in CSV
-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,