Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive #81

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

tomaswilhelmsson
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant