remove second parameter to doBlock in forEachDir, as it is unused. this simplifies its type signature to a Callback