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

how can i limit the number of data?

Open vaibhavG321 opened this issue 5 years ago • 1 comments

Thanks for this good package! In a directory, I only want first 10 files then what can i do for that?

vaibhavG321 avatar Jan 25 '20 13:01 vaibhavG321

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.

mihneadb avatar Jan 30 '20 11:01 mihneadb