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

Function isDir

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

Source from the content-addressed store, hash-verified

22 await fileExists(path) && (await stat(path)).isFile()
23
24export const isDir = async (path: string): Promise<boolean> =>
25 await fileExists(path) && (await stat(path)).isDirectory()
26
27export const isSymbolicLink = async (path: string): Promise<boolean> =>
28 (await lstat(path)).isSymbolicLink()

Callers 4

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

Calls 1

fileExistsFunction · 0.85

Tested by

no test coverage detected