Closed fweinrich closed 6 months ago
fixed the spacing
added the spaces, fixed the recursive function and removed the extra if statement
Any updates on this PR? I'm interested by this feature. 👍
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
You are right @kwent, fixed that.
@fweinrich sorry, I was away. A few things:
children: []
part in the leaf dirsif option.depth
stuff and adds 1 to the starting depth if needed (you'll need it for the new base case checking)Hope that makes sense! Thanks for doing this!
Simple depth option