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

depth() don't work correct #99

Open
TomFuch opened this issue Jan 26, 2023 · 0 comments
Open

depth() don't work correct #99

TomFuch opened this issue Jan 26, 2023 · 0 comments

Comments

@TomFuch
Copy link

TomFuch commented Jan 26, 2023

Describe the bug
When path() is the root of a windows driveletter, depth(0) is not restricted to the root. It will also find files in the first directory level.

To Reproduce
Steps to reproduce the behaviour:
const files = FileHound.create() .path('z:\\') .depth(0) .find();

Expected behaviour
Files are also detected in the first level of subdirectories.

@TomFuch TomFuch added the bug label Jan 26, 2023
@nspragg nspragg added the triage label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants