mihneadb / node-directory-tree

Convert a directory tree to a JS object.
MIT License
523 stars 106 forks source link

Depth Option #37

Closed fweinrich closed 6 months ago

fweinrich commented 6 years ago

Simple depth option

fweinrich commented 6 years ago

fixed the spacing

fweinrich commented 6 years ago

added the spaces, fixed the recursive function and removed the extra if statement

kwent commented 6 years ago

Any updates on this PR? I'm interested by this feature. 👍

kwent commented 6 years ago

Tried this branch. I noticed some directory objects with a undefined type instead directory. Not sure test is covering this: https://github.com/mihneadb/node-directory-tree/pull/37/files#diff-0dab5ef74b676cf70d75f9adfe052c8fR24

fweinrich commented 6 years ago

You are right @kwent, fixed that.

mihneadb commented 6 years ago

@fweinrich sorry, I was away. A few things:

Hope that makes sense! Thanks for doing this!

fweinrich commented 6 years ago