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

Refactor how the directory is walked #12

Closed kevin-brown closed 5 years ago

kevin-brown commented 5 years ago

This refactors how the directory is walked to make it slightly more clear how files are excluded from the hashing process. This was previously hidden within list comprehensions and guarded by the ignore_hidden flag (controlling one of two related ways). This breaks it out to make it more clear what is actually happening when ignore_hidden is passed in to the function. The actual behavioiur is not affected by this change, this is purely a refactor.