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

Method readFolderIncludingEmpty

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

Source from the content-addressed store, hash-verified

244 }
245
246 readFolderIncludingEmpty(folderPath: string, removeBasePath: boolean): Array<string> {
247 const removeFromPathString = removeBasePath ? folderPath : ''
248
249 return this.walkSyncIncludingEmptyFolders(folderPath, [], removeFromPathString)
250 }
251
252 clearFolder(folderPath: string, removeOwnFolder: boolean = false): FileSystem {
253 if(this.folderDoesNotExist(folderPath)) return this

Callers 1

Calls 1

Tested by

no test coverage detected