zorchenhimer / go-acc

A utility to verify CRC32 hashes in filenames and generate ed2k links

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-acc

Compute CRC32 and ED2K hashes for files.

Default behavior is to simply compute and verify CRC32 hashes found in filenames. If no hash is found, one can be added with the --add option.

The --add-delim option sets the character to use to separate the original filename from the added CRC32 hash. This defaults to an empty string (ie, no delimiter). The added hash is always surrounded by square brackets.

Generating full ED2K links is done with the --ed2k option. If this option is passed, the files will not be CRC32 hashed. ED2K hashes cannot be added to filenames.

Usage

acc [--add] [--add-delim ADD-DELIM] [--ed2k] INPUTFILES [INPUTFILES ...]

Positional arguments:
  INPUTFILES             Input files

Options:
  --add, -a              Add the calculated hash to the filename if none is found
  --add-delim ADD-DELIM, -d ADD-DELIM
                         Character to use before the added hash
  --ed2k, -e             Print ED2K links
  --help, -h             display this help and exit

About

A utility to verify CRC32 hashes in filenames and generate ed2k links

License:MIT License


Languages

Language:Go 98.5%Language:Makefile 1.5%