From a16f860819b2bc69bf8ca7580c361429c7d35b5c Mon Sep 17 00:00:00 2001 From: Omer Ben Amram Date: Wed, 19 Jun 2019 23:45:59 +0300 Subject: fix ADS in CSV --- src/csv.rs | 7 ++++--- 1 file 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, -- cgit v1.2.3