MCPcopy
hub / github.com/Kong/insomnia / readdir

Method readdir

packages/insomnia/src/sync/git/mem-client.ts:179–187  ·  view source on GitHub ↗
(basePath: string)

Source from the content-addressed store, hash-verified

177 }
178
179 async readdir(basePath: string) {
180 basePath = path.normalize(basePath);
181
182 const entry = this._assertDir(basePath);
183
184 const names = entry.children.map(c => c.name);
185 names.sort();
186 return names;
187 }
188
189 async mkdir(dirPath: string, options?: { recursive?: boolean }) {
190 dirPath = path.normalize(dirPath);

Callers 15

nextMethod · 0.95
gitAdapterFunction · 0.45
cloneGitRepoActionFunction · 0.45
containsInsomniaDirFunction · 0.45
clearMethod · 0.45

Calls 3

_assertDirMethod · 0.95
normalizeMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected