node-directory-tree icon indicating copy to clipboard operation
node-directory-tree copied to clipboard

onEachDirectory callbacks only top level directory

Open hados99 opened this issue 6 years ago • 1 comments

Hi, really thanks for good library.

When testing onEachDirectory callback, it only returns top level directory. I tested on nodejs v10, directory-tree v2.2.0, installed via npm.

I think onEachDirectory callback parameter is missing when calling directoryTree recursively.

https://github.com/mihneadb/node-directory-tree/blob/5f2db2932a798ce728337cb0c7aab039afc91d70/lib/directory-tree.js#L99

hados99 avatar Dec 17 '18 07:12 hados99

Hi, good find! Feel free to submit a PR :).

mihneadb avatar Dec 22 '18 11:12 mihneadb