MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / isSymbolicLink

Function isSymbolicLink

src/lib/file-util.ts:27–28  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

25 await fileExists(path) && (await stat(path)).isDirectory()
26
27export const isSymbolicLink = async (path: string): Promise<boolean> =>
28 (await lstat(path)).isSymbolicLink()
29
30export const realPathForSymbolicLink = async (path: string): Promise<string> =>
31 await realpath(path)

Callers 2

walkDirFunction · 0.85
file-util.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected