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

Any way to change default attributes?

Open PippoApps opened this issue 2 years ago • 1 comments

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

PippoApps avatar Jan 07 '23 12:01 PippoApps

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

mihneadb avatar Jan 08 '23 19:01 mihneadb