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

Recursive

Open tomaswilhelmsson opened this issue 4 years ago • 0 comments

Added option "recursionDepth" to limit the depth the directory-tree is searched. Noticed this when i tried to read DS-18b20 temperature sensor that for some reason /sys/bus/w1/devices has a endless recursive tree.

Added tests and updated other tests to work accomidate for the test_data folders new structure.

dirTree('/sys/bus/w1/devices', { recursionDepth: 4 }); for example to go 4 levels deep.

tomaswilhelmsson avatar Feb 03 '21 19:02 tomaswilhelmsson