MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / isFolder

Method isFolder

src/main/base/FileSystem.ts:21–28  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

19 }
20
21 isFolder(path: string) {
22 try {
23 let stat = fs.lstatSync(path)
24 return stat.isDirectory()
25 } catch (e) {
26 return false
27 }
28 }
29
30 folderIsNotEmpty(folderPath: string): boolean {
31 return !this.folderIsEmpty(folderPath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected