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 From 366afd66d52e0dc10e4be5085f90adfe66fb7433 Mon Sep 17 00:00:00 2001 From: Omer Ben Amram Date: Wed, 19 Jun 2019 23:47:06 +0300 Subject: changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b2131..42b4e09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.4] - 2019-06-19 + +### Fixed +- Fixed a bug where `HasAlternateDataStreams` will miss entries with only a single named stream. + ## [0.4.3] - 2019-06-06 ### Added -- cgit v1.2.3 From f05c4a11f082dc104456b78c12723c9ba3d3b4d7 Mon Sep 17 00:00:00 2001 From: Omer Ben Amram Date: Wed, 19 Jun 2019 23:52:08 +0300 Subject: ignore .idea --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 4dd8588..f50c861 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ # Generated by Cargo + +.idea + # will have compiled files and executables /target/ -- cgit v1.2.3