Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gosimple/hashdir
Generate hash for folder structure
https://github.com/gosimple/hashdir
Last synced: about 2 months ago
JSON representation
Generate hash for folder structure
- Host: GitHub
- URL: https://github.com/gosimple/hashdir
- Owner: gosimple
- License: mpl-2.0
- Created: 2020-06-17T11:23:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T18:44:58.000Z (11 months ago)
- Last Synced: 2024-04-17T18:19:34.138Z (9 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hashdir
[![Go Reference](https://pkg.go.dev/badge/github.com/gosimple/hashdir.svg)](https://pkg.go.dev/github.com/gosimple/hashdir)
[![Tests](https://github.com/gosimple/hashdir/actions/workflows/tests.yml/badge.svg)](https://github.com/gosimple/hashdir/actions/workflows/tests.yml)Generate hash of all files and they paths for specified directory.
```go
package mainimport (
"fmt""github.com/gosimple/hashdir"
)func main() {
dirHash, err := hashdir.Make("./someDir/", "md5")
fmt.Println(dirHash)
}
```Supported hashes:
* md5
* sha1
* sha256
* sha512### Requests or bugs?
## Installation
```sh
go get -u github.com/gosimple/hashdir
```## License
The source files are distributed under the
[Mozilla Public License, version 2.0](http://mozilla.org/MPL/2.0/),
unless otherwise noted.
Please read the [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html)
if you have further questions regarding the license.