happy-opfs
    Preparing search index...

    Function stat

    • Retrieves the FileSystemHandle for a file or directory at the specified path. Can be used to check the type (file or directory) and access metadata.

      Parameters

      • path: string

        The absolute path of the file or directory.

      Returns AsyncIOResult<FileSystemHandle>

      A promise that resolves to an AsyncIOResult containing the FileSystemHandle.

      1.0.0

      (await stat('/path/to/entry'))
      .inspect(handle => console.log(`Kind: ${ handle.kind }, Name: ${ handle.name }`));