index.js
function createIsDirError (path) {
  var error = new Error('EISDIR, illegal operation on directory \'' + path + '\'')
  error.code = 'EISDIR'
  error.errno = 28
  error.path = path
  error.syscall = 'open'
  return error
}
function createIsDirError (path) {
  var error = new Error('EISDIR, illegal operation on directory \'' + path + '\'')
  error.code = 'EISDIR'
  error.errno = 28
  error.path = path
  error.syscall = 'open'
  return error
}
function createIsDirError ( path ) { var error = new Error ( 'EISDIR, illegal operation on directory \'' + path + '\'' ) error . code = 'EISDIR' error . errno = 28 error . path = path error . syscall = 'open' return error }
Create EISDIR error.

@private
@param {string} path
@return {Error}
Create EISDIR error .