node-directory-tree
node-directory-tree copied to clipboard
how can i limit the number of data?
Thanks for this good package! In a directory, I only want first 10 files then what can i do for that?
Hi, the lib does not support this currently as it's a bit of a fuzzy description. Do you want all folders + 10 files? 10 folders + files? How do you choose them? etc. Easiest way right now is to get the full tree and filter it to your liking. Otherwise, I'd say better requirements would be needed to extend the code with this option.