happy-opfs
    Preparing search index...

    Function isDirectoryHandle

    • Checks whether the given handle is a directory handle.

      Parameters

      • handle: FileSystemHandle

        The FileSystemHandle to check.

      Returns handle is FileSystemDirectoryHandle

      true if the handle is a FileSystemDirectoryHandle, otherwise false.

      1.0.0

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