MCPcopy Index your code
hub / github.com/nodejs/node / createENOTDIR

Function createENOTDIR

lib/internal/vfs/errors.js:47–55  ·  view source on GitHub ↗

* Creates an ENOTDIR error. * @param {string} syscall The system call name * @param {string} path The path that is not a directory * @returns {Error}

(syscall, path)

Source from the content-addressed store, hash-verified

45 * @returns {Error}
46 */
47function createENOTDIR(syscall, path) {
48 const err = new UVException({
49 errno: UV_ENOTDIR,
50 syscall,
51 path,
52 });
53 ErrorCaptureStackTrace(err, createENOTDIR);
54 return err;
55}
56
57/**
58 * Creates an ENOTEMPTY error for non-empty directory.

Callers 5

#ensureParentMethod · 0.85
readdirSyncMethod · 0.85
mkdirSyncMethod · 0.85
rmdirSyncMethod · 0.85
renameSyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected