Library API
    Preparing search index...

    Function getOPFSRoot

    • Retrieves the root directory handle for the Origin Private File System (OPFS).

      Parameters

      • OptionalsubDir: string

        Optional sub-directory path to navigate into

      • create: boolean = true

        Whether to create sub-directories if they do not exist (default: true)

      Returns Promise<FileSystemDirectoryHandle | null>

      The directory handle or null if unsupported/unavailable