Skip to content

Non-hidden files in a hidden root directory not listed #54

@JaSpa

Description

@JaSpa

Thank you for this delightful utility!

I have the following folder structure:

> tre -a
.
├── some-file
└── .hidden-dir
    ├── regular
    └── .hidden

Running tre without the -a flag behaves as expected, showing only some-file.

When I pass a specific root path I expect tre to list the non-hidden files in that directory, regardless if the root is hidden or not, or if the -a flag is specified or not:

# Actual behaviour
> tre .hidden-dir
.hidden-dir

# Expected behaviour
> tre .hidden-dir
.hidden-dir
└── regular

Passing -a would then also list the hidden files in that specific directory:

> tre -a .hidden-dir
.hidden-dir
├── .hidden
└── regular

Edit: This expected behaviour is how tree works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions