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

Any way to change default attributes? #126

Open
PippoApps opened this issue Jan 7, 2023 · 1 comment
Open

Any way to change default attributes? #126

PippoApps opened this issue Jan 7, 2023 · 1 comment

Comments

@PippoApps
Copy link

Hi,
I would like to get rid of the dafault "path" attribute.
Is it possible?

@mihneadb
Copy link
Owner

mihneadb commented Jan 8, 2023

Hi, right now path is always there. You could walk the tree and strip it down.

https://github.com/mihneadb/node-directory-tree/blob/master/lib/directory-tree.js#L60

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

No branches or pull requests

2 participants