Created
February 1, 2026 13:11
-
-
Save wullemsb/b061d465ce6e00e120a541d794050e51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var linkOptions = new DataflowLinkOptions { PropagateCompletion = true }; | |
| // RECURSION: If the entry is a directory, feed it back into the same block. | |
| getFolderContents.LinkTo(getFolderContents, linkOptions, | |
| entry => Directory.Exists(entry)); | |
| // BASE CASE: If the entry is a file, send it forward for hashing. | |
| getFolderContents.LinkTo(computeMD5, linkOptions, | |
| entry => File.Exists(entry)); | |
| // Final stage: display the hash. | |
| computeMD5.LinkTo(displayResult, linkOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment