Add renfnv tool.

This is a tool I use for renaming files when doing photographic work.

This change also renames the functions in fileutil to not be P
functions.
This commit is contained in:
Kyle Isom
2016-08-23 12:59:34 -07:00
parent f710b82899
commit e8045e0b1f
3 changed files with 155 additions and 4 deletions

15
cmd/renfnv/README Normal file
View File

@@ -0,0 +1,15 @@
renfnv
This renames a file to the base32-encoded 64-bit FNV-1a hash of the
file's contents. The extension is preserved. This was motivated by
a desire to normalise names for photographs.
Usage: renfnv [-fhlnv] files...
-f force overwriting of files when there is a collision.
-h print this help message.
-l list changed files.
-n Perform a dry run: don't actually move files.
-v Print all files as they are processed. If both -v and -l
are specified, it will behave as if only -v was specified.