Skip to content

arpio/dirhasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirhasher

Command-line interface to Go's dirhash module

dirhasher computes a hash of a directory (or a ZIP archive) using go's built-in dirhash module and prints it to stdout.

When computing the hash of a directory, the prefix argument passed to dirhash.HashDir is always "".

Installation

go install github.com/arpio/dirhasher@latest

Usage

Use it on a ZIP archive:

dirhasher my-archive.zip

Or on a directory:

dirhasher /tmp/some-directory 

Package documentation is available at godoc.

See Also

https://pkg.go.dev/golang.org/x/mod/sumdb/dirhash

About

Command-line interface to Go's `dirhash` module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages