glob
Documentation / @wtf/platform-fs / glob
The entries of a folder’s handle that match a pattern, as Node’s glob of fs/promises matches
the paths of a folder: glob, each path of a match and its handle, as it is found; and
whether one path matches a pattern, matches, of no folder. Of any
folder’s handle, a browser’s too: what it reads is the standard’s entries(); and, of a folder
that reads its links by a readSymlink(name) of its own, which the standard has not, that, so
** follows none to a folder.
for await (const [path, handle] of glob(root, 'src/**/*.{ts,tsx}')) console.log(path, handle)