dirhash

dirhash is a simple Go package to compute a SHA-256 hash of a directory tree, including file contents and relative paths. Useful for detecting any changes in directory structure or files.

Developer

Jul 27, 2025

dirhash is a Go package I built that generates a SHA-256 hash for an entire directory tree, including both file paths and file contents. I created it because I needed a simple way to detect changes within a directory, but every existing solution I found was either too complicated or not powerful enough, so I decided to make my own.

It’s licensed under the BSD 3-Clause License and completely free for anyone to use.