Home > @rushstack/node-core-library > FileSystem > isDirectoryError
FileSystem.isDirectoryError() method
Returns true if the error object indicates the target is a directory (EISDIR).
Signature:
static isDirectoryError(error: Error): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| error | Error |
Returns:
boolean