
gckdir
This is go-check-directory tool.
Description
This tool can generate a hash list of specified directory in the json format.
With the hash list, you can verify the target directory's structure and each hash value
of files.
Usage
Generate
$ gckdir generate path/to/source_directory hash_name.json
For more details, please see gckdir generate --help.
Verify
$ gckdir verify hash_name.json path/to/target_directory
or
$ gckdir verify path/to/source_directory path/to/target_directory
For more details, please see gckdir verify --help.
Create a result report
$ gckdir verify --report hash_name.json path/to/target_directory
You can create a verification result report with --report option.

$ gckdir verify --open hash_name.json path/to/target_directory
If you want to check the result immediately on the browser, please use the --open option. This option includes the --report option.

ExitCode
ExitCode returns with 0 if all processing is successful.
When a problem occurs, an integer of 1 or more is returned as ExitCode.
Even when the comparison result is Fail, an integer of 1 or more is returned as ExitCode.
Install
To install, use go get:
$ go get -d github.com/KemoKemo/gckdir
Contribution
- Fork (https://github.com/KemoKemo/gckdir/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./... command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
Author
KemoKemo
License
MIT
Special Thanks
This application uses the following excellent projects.