diff options
author | Omer Ben Amram <omerbenamram@gmail.com> | 2019-06-19 23:45:59 +0300 |
---|---|---|
committer | Omer Ben Amram <omerbenamram@gmail.com> | 2019-06-19 23:45:59 +0300 |
commit | a16f860819b2bc69bf8ca7580c361429c7d35b5c (patch) | |
tree | ac86006af66e6f9f28b5cb2ae8c903456d84df6c | |
parent | 7f590117e6a9b7496a5a8987c8ce69494eaad8fc (diff) |
fix ADS in CSV
-rw-r--r-- | src/csv.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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, |