caterpillar:哈希目录树,以供以后验证

时间:2021-03-15 10:11:33
【文件属性】:
文件名称:caterpillar:哈希目录树,以供以后验证
文件大小:26KB
文件格式:ZIP
更新时间:2021-03-15 10:11:33
Go 毛虫 Caterpiller保存目录树的哈希值,以便以后根据之前保存的数据验证,并且还可以让您知道自上次运行以来是否添加或删除了任何文件。 例子: boa:~/repos/caterpillar(primaria)$ ./caterpillar hash ./hash/ 514c1ea7456b11c1bc8a89927206602b hash/file.go 4b7d6cd1868de6b8adf5960fa569f718 hash/hash.go 12b2a2e47897141494342b2fe6a37d3f hash/tree.go Writing file: /home/dburke/repos/caterpillar/hash.json boa:~/repos/caterpillar(primaria)$ cat hash.json { "hash/.": {
【文件预览】:
caterpillar-primaria
----.goreleaser.yml(1KB)
----cmd()
--------init.go(782B)
--------root.go(389B)
--------hash.go(2KB)
----db()
--------db.go(2KB)
----main.go(95B)
----.gitignore(31B)
----Makefile(402B)
----go.sum(41KB)
----README.md(1KB)
----util()
--------string.go(159B)
--------json.go(264B)
----hash()
--------tree.go(1KB)
--------hash.go(1KB)
--------json.go(647B)
--------file.go(170B)
----go.mod(1KB)

网友评论