to-mc / checksumdir

Simple package to compute a single deterministic hash of the file contents of a directory.
MIT License
94 stars 28 forks source link

Add option to use stat instead of file bytes. #14

Open fbristow opened 5 years ago

fbristow commented 5 years ago

Calculating the hash of a directory using bytes can get expensive quickly, especially when working with large media files (e.g., videos). This commit adds an option to choose which data source is used to get bytes to be added to the hash, one of:

@cakepietoast I'd be happy to make any changes to this that you deem appropriate, please let me know. Feel free to close this request if the change is unwanted.