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

Method readFolderIncludingEmptyIfExists

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

Source from the content-addressed store, hash-verified

238 }
239
240 readFolderIncludingEmptyIfExists(folderPath: string, removeBasePath: boolean): Array<string> {
241 if(!this.folderExists(folderPath)) return []
242
243 return this.readFolderIncludingEmpty(folderPath, removeBasePath)
244 }
245
246 readFolderIncludingEmpty(folderPath: string, removeBasePath: boolean): Array<string> {
247 const removeFromPathString = removeBasePath ? folderPath : ''

Callers 1

HandleIpcMessagesFunction · 0.80

Calls 2

folderExistsMethod · 0.95

Tested by

no test coverage detected