IsDirectoryError

Used by isDirectory function. The Error is instantiated when the function rejects due to the reason of the file name parameter leading to file rather than a directory.

Parameters

  • dirPath: string