When using glob
can't exclude all directs
#56260
Labels
fs
Issues and PRs related to the fs subsystem / file system.
glob
can't exclude all directs
#56260
Version
v23.4.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Create a folder and open it in your code editor (we use this as current working directory).
Make/create the files/folders shown below:
Run the code below:
How often does it reproduce? Is there a required condition?
.
What is the expected behavior? Why is that the expected behavior?
I expect the
exclude
function to receive all the output directs, so that they can be excluded. (See "Additional information" part).Even with just returning
true
inexclude
function, you can excludeDirentFromStats
from the result.What do you see instead?
The first direct from output is missing in exclude. (See "Additional information" part).
Additional information
Exclude:
Output:
The text was updated successfully, but these errors were encountered: