Releases: ciphersaw/hash-rename
Releases · ciphersaw/hash-rename
hash-rename v1.1.0
Feature
- Add
-c, --concurrency
to set the goroutine concurrency for renaming. - Add
-u, --uppercase
to set the uppercase of hash value for renaming. - Add
-F, --force
to force to rename ignoring file name check, which keeps file name unchanged if its current name matches the corresponding hash value.
Refactor
- Initialize and close channels in every
renameBulkFiles
task, no longer to use global channels. - Add
HashFunc
struct to unify the operations.
Fix
- Fix the bug of old file locating in
renameBulkFiles
, which fails to locate files in different path from hash_name.
Style
- Make the error messages more detailed and formal.
- Update the reasons that no files have been renamed.
Test
- Add the unit tests for
renameOneFile
andrenameBulkFiles
.
hash-rename v1.0.0
Feature
- Rename a file with its hash value.
- Rename a bulk of files with their respective hash value.
- Hash functions are available for md5, sha1 and sha256 currently.