Deterministic hash of a directory tree (relative paths and contents).
directory
Optional
returns false to skip a relative path
hex digest
Deterministic hash of a directory tree (relative paths and contents).