You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
270 B
11 lines
270 B
'use strict';
|
|
|
|
const util = require('util');
|
|
|
|
/**
|
|
* @param {unknown} error
|
|
* @returns {error is NodeJS.ErrnoException}
|
|
*/
|
|
module.exports = function isPathNotFoundError(error) {
|
|
return util.types.isNativeError(error) && 'code' in error && error.code === 'ENOENT';
|
|
};
|
|
|