pub async fn hash_folder(root_path: &Path) -> UtilResult<Hash>
Expand description

Recursively hashes a folder returning a checksum.

The hashing function takes into account all files, folders, and symlinks. All contents, the file type, and the unix file mode are included as well.

Please note that if you have very large files in the directory, the running time might take a while since reading a lot of data from disk is not fast.