MCPcopy Index your code
hub / github.com/Kong/insomnia / _assertFileEntry

Method _assertFileEntry

packages/insomnia/src/sync/git/mem-client.ts:403–417  ·  view source on GitHub ↗
(entry: FSEntry)

Source from the content-addressed store, hash-verified

401 }
402
403 _assertFileEntry(entry: FSEntry) {
404 entry = this._resolveLinks(entry);
405
406 if (entry.type === 'dir') {
407 throw new SystemError({
408 code: 'EISDIR',
409 errno: -21,
410 message: `EISDIR: illegal operation on a directory '${entry.path}'`,
411 path: entry.path,
412 syscall: 'open',
413 });
414 }
415
416 return entry;
417 }
418
419 _assertFile(filePath: string) {
420 const entry = this._assertExists(filePath);

Callers 2

writeFileMethod · 0.95
_assertFileMethod · 0.95

Calls 1

_resolveLinksMethod · 0.95

Tested by

no test coverage detected