documentation
This commit is contained in:
parent
c9f68d8373
commit
944360f9ab
3 changed files with 5 additions and 2 deletions
|
@ -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
|
- "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
|
- "bak", "backup": Backup copies are a common idiom (e.g. "game.exe.bak") and should be respected
|
||||||
### Fixed
|
### 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
|
## v0.5.1 - 2022-04-12
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -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
|
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).
|
[`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
|
## License
|
||||||
Copyright (C) 2021 Lynnesbian
|
Copyright (C) 2021 Lynnesbian
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,6 @@ pub fn scan_file(entry: &DirEntry, canonical_paths: bool) -> Result<Findings, Sc
|
||||||
Ok(Some(result)) => result,
|
Ok(Some(result)) => result,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// determine whether or not the file's current extension is valid
|
// determine whether or not the file's current extension is valid
|
||||||
let valid = if let Some(entry_ext) = path.extension() {
|
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
|
// discard invalid UTF-8 and convert to lowercase. all extensions in both backend's databases are lowercase
|
||||||
|
|
Loading…
Reference in a new issue