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