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

Method readFolderIfExists

src/main/base/FileSystem.ts:228–232  ·  view source on GitHub ↗
(folderPath: string, removeBasePath: boolean)

Source from the content-addressed store, hash-verified

226 }
227
228 readFolderIfExists(folderPath: string, removeBasePath: boolean): Array<string> {
229 if(!this.folderExists(folderPath)) return []
230
231 return this.readFolder(folderPath, removeBasePath)
232 }
233
234 readFolder(folderPath: string, removeBasePath: boolean): Array<string> {
235 const removeFromPathString = removeBasePath ? folderPath : ''

Callers

nothing calls this directly

Calls 2

folderExistsMethod · 0.95
readFolderMethod · 0.95

Tested by

no test coverage detected