Cosmos Journeyer API Documentation - v1.10.4
    Preparing search index...

    Implementation of IFileSystem using the Origin Private File System (OPFS) API. This provides persistent file storage that survives browser restarts and is private to the origin.

    Implements

    Index

    Methods

    • Lists the contents of a directory.

      Parameters

      • path: string

        The directory path to list

      Returns Promise<null | string[]>

      Array of file/directory names, or null if directory doesn't exist

    • Writes content to a file.

      Parameters

      • path: string

        The file path to write to

      • content: string

        The content to write

      Returns Promise<boolean>

      Boolean indicating success or failure