MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / symlinkExists

Function symlinkExists

packages/@contentlayer/utils/src/node/fs.ts:34–40  ·  view source on GitHub ↗
(pathLike: string)

Source from the content-addressed store, hash-verified

32}
33
34const symlinkExists = (pathLike: string): T.Effect<unknown, StatError, boolean> => {
35 return pipe(
36 stat(pathLike),
37 T.map((stat_) => stat_.isSymbolicLink()),
38 T.catchTag('fs.FileNotFoundError', () => T.succeed(false)),
39 )
40}
41
42const stat = (filePath: string): T.Effect<unknown, FileNotFoundError | StatError, Stats> => {
43 return T.tryCatchPromise(

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
statFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…