Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Cached map of bucket name -> directory handle, with the stale-handle recovery primitive (invalidate) used after a concurrent clear() leaves dangling handles in memory.

    Index
    handles: Map<string, FileSystemDirectoryHandle> = ...
    • Look up or create the directory handle for bucket. Returns null if the handle cannot be obtained (e.g., create=false and the directory does not exist).

      Parameters

      • root: FileSystemDirectoryHandle
      • bucket: string
      • create: boolean

      Returns Promise<FileSystemDirectoryHandle | null>

    • Resolve a cache key to its bucket file handle: <root>/<bucket(key)>/<keyToFileName(key)>.

      Parameters

      • root: FileSystemDirectoryHandle
      • key: string
      • create: boolean

      Returns Promise<FileSystemFileHandle>