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

Method readFolder

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

Source from the content-addressed store, hash-verified

232 }
233
234 readFolder(folderPath: string, removeBasePath: boolean): Array<string> {
235 const removeFromPathString = removeBasePath ? folderPath : ''
236
237 return this.walkSync(folderPath, [], removeFromPathString)
238 }
239
240 readFolderIncludingEmptyIfExists(folderPath: string, removeBasePath: boolean): Array<string> {
241 if(!this.folderExists(folderPath)) return []

Callers 2

readFolderIfExistsMethod · 0.95
HandleIpcMessagesFunction · 0.80

Calls 1

walkSyncMethod · 0.95

Tested by

no test coverage detected