anc95 / inquirer-file-tree-selection

inquirer prompt for select a file or dir by file tree
49 stars 26 forks source link

`root` directory is not available to select when different from `process.cwd()` #5

Closed hogpilot closed 4 years ago

hogpilot commented 4 years ago

If root property is set, then only the children are shown with no option of selecting the root. However, the .(current directory) is always an option, regardless of whether or not root is the same directory.

I'll submit a pull request as a candidate to address this issue