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:
-rw-r--r--.gitignore3
-rw-r--r--CHANGELOG.md5
-rw-r--r--src/csv.rs7
3 files changed, 12 insertions, 3 deletions
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/
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
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,