jkcfg / jk

Configuration as Code with ECMAScript
https://jkcfg.github.io
Apache License 2.0
406 stars 30 forks source link

Make sure all directory pops are noticed #292

Closed squaremo closed 5 years ago

squaremo commented 5 years ago

The original implementation of fs.walk avoided pushing empty slices onto the stack; however, this meant it missed calling the post hook in the case when the last entry in a directory was itself a directory.