MCPcopy Create free account
hub / github.com/Effect-TS/effect / glob

Function glob

packages/platform/deno/src/DenoFileSystem.ts:78–86  ·  view source on GitHub ↗
(pattern, options)

Source from the content-addressed store, hash-verified

76 tryPromise("chown", path, () => Deno.chown(path, uid, gid))
77
78const glob: FileSystem.FileSystem["glob"] = (pattern, options) =>
79 Effect.map(
80 collectAsyncIterable("glob", pattern, () =>
81 expandGlob(pattern, {
82 root: options?.root ?? Deno.cwd(),
83 exclude: options?.exclude ? [...options.exclude] : []
84 })),
85 (entries) => entries.map((entry) => entry.path)
86 )
87
88const link: FileSystem.FileSystem["link"] = (existingPath, newPath) =>
89 tryPromise("link", existingPath, () => Deno.link(existingPath, newPath))

Callers

nothing calls this directly

Calls 2

collectAsyncIterableFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected