diff --git a/CHANGELOG.md b/CHANGELOG.md index 76d49f8..fb856a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - "filepart", "part", "crdownload": Partially downloaded files, renaming could break download - "bak", "backup": Backup copies are a common idiom (e.g. "game.exe.bak") and should be respected ### Fixed -- Support for many file types that are subcategories of others (e.g., fif will no longer rename apk files to zip) +- Support for many file types that are subcategories of others (e.g., fif will no longer rename apk files to zip) (#1) ## v0.5.1 - 2022-04-12 ### Added diff --git a/README.md b/README.md index c190a74..15a67e7 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,10 @@ same line (["OTBS"](https://en.wikipedia.org/wiki/Indentation_style#Variant:_1TB For more detailed information on the formatting rules used by this project, see the configured options in [`rustfmt.toml`](https://gitlab.com/Lynnesbian/fif/-/blob/master/rustfmt.toml). +## Additional credits +Some of the code for correctly handling files with multiple valid extensions (particularly in the case of the +Portable Executable format) comes from [Czkawka](https://github.com/qarmin/czkawka) + ## License Copyright (C) 2021 Lynnesbian diff --git a/src/files.rs b/src/files.rs index fc7218f..9f07777 100644 --- a/src/files.rs +++ b/src/files.rs @@ -127,7 +127,6 @@ pub fn scan_file(entry: &DirEntry, canonical_paths: bool) -> Result result, }; - // determine whether or not the file's current extension is valid let valid = if let Some(entry_ext) = path.extension() { // discard invalid UTF-8 and convert to lowercase. all extensions in both backend's databases are lowercase