mihneadb / node-directory-tree

Convert a directory tree to a JS object.
MIT License
523 stars 106 forks source link

Feature request: Add a reverse tree option #129

Open yhojann-cl opened 4 months ago

yhojann-cl commented 4 months ago

By example, for /abc/def/ghi says:

abc
├── def
│   ├── ghi
│   └── def-abc
│       └── foo.jpg
├── abc-abc
└── abc-def

See:

The idea:

When open a folder show the content of this folder only and parents, like as the file explorer, when user request /abc/def/ghi path need show all parent paths and files and folders for current path:

img

The current mode only show all files and folders from specific path from current left to infinite right, the proposal is from current right to infinite left.