You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going with 1: since most people name their directories differently from their files (files include dots in most cases), having to use function queries isn't really a huge issue and since .find and .filter are somewhat relative to Array.prototype equivalent functions, allowing the query to be strings or arrays and the deep argument is more like bonus than something that makes it easier to understand.
Describe the bug
.find and .filter on Files never match directories.
To Reproduce
Run this code in Node X.XX (or Deno/Firefox/Chromium/Cloudflare Workers/etc):
Expected behavior
Directories should be searchable/filterable.
Additional context
The issue lies here:
One option is to add a new argument "includeDirectories" which, if true, it includes directories. Or just change it to include directories anyway.
The text was updated successfully, but these errors were encountered: