* 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)
| 45 | * @returns {Error} |
| 46 | */ |
| 47 | function 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. |
no outgoing calls
no test coverage detected