Skip to content

depth() don't work correct #99

@TomFuch

Description

@TomFuch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions