Checks whether the given handle is a directory handle.
The FileSystemHandle to check.
FileSystemHandle
true if the handle is a FileSystemDirectoryHandle, otherwise false.
true
FileSystemDirectoryHandle
false
1.0.0
(await stat('/path/to/dir')) .inspect(handle => isDirectoryHandle(handle) && console.log('This is a directory')); Copy
(await stat('/path/to/dir')) .inspect(handle => isDirectoryHandle(handle) && console.log('This is a directory'));
Checks whether the given handle is a directory handle.