happy-opfs
    Preparing search index...

    Function isFileHandle

    • Checks whether the given handle is a file handle.

      Parameters

      • handle: FileSystemHandle

        The FileSystemHandle to check.

      Returns handle is FileSystemFileHandle

      true if the handle is a FileSystemFileHandle, otherwise false.

      1.0.0

      (await stat('/path/to/file'))
      .inspect(handle => isFileHandle(handle) && console.log('This is a file'));