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

Function isFile

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

Source from the content-addressed store, hash-verified

19}
20
21export const isFile = async (path: string): Promise<boolean> =>
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()

Callers 4

copyIfExistsFunction · 0.85
findYAMLFilenameFunction · 0.85
processSrcDirFunction · 0.85
file-util.test.tsFile · 0.85

Calls 1

fileExistsFunction · 0.85

Tested by

no test coverage detected