xxkfqz / hashname.py

Rename files to their hash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usage: hashname [-h] [-f] [-F] [-a ALGORITHM] [-d] [-v] FILE [FILE ...]

Rename files to their hash

positional arguments:
  FILE                  Path to file to rename

optional arguments:
  -h, --help            show this help message and exit
  -f, --force           Process the file even if it looks like it has already
                        been processed
  -F, --force-rename    Rename file even there is another file with the same
                        result name
  -a ALGORITHM, --algorithm ALGORITHM
                        Set specific hash algorithm: "md5", "sha256"
                        (default), "sha512"
  -d, --dry-run         Do not actually rename files
  -v, --verbose         Print more information during processing

About

Rename files to their hash

License:Do What The F*ck You Want To Public License


Languages

Language:Python 100.0%