CreateArchiveController | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface CreateArchiveController

    interface CreateArchiveController {
        addFile(
            name: string,
            data:
                | string
                | Blob
                | ArrayBuffer
                | Uint8Array<ArrayBufferLike>
                | ReadableStream<Uint8Array<ArrayBufferLike>>,
            modTime: null | ValidZipDateTimeSources,
            options?: { compressionLevel?: number },
        ): Promise<void>;
        addFolder(
            fullPath: string,
            modTime: null | ValidZipDateTimeSources,
        ): Promise<void>;
    }
    Index

    Methods

    • Adds a file to the archive, returns when the file data has been streamed to the archive stream

      Parameters

      • name: string
      • data:
            | string
            | Blob
            | ArrayBuffer
            | Uint8Array<ArrayBufferLike>
            | ReadableStream<Uint8Array<ArrayBufferLike>>
      • modTime: null | ValidZipDateTimeSources
      • Optionaloptions: { compressionLevel?: number }

      Returns Promise<void>

    • Adds a folder to the archive, returns when the folder data has been streamed to the archive stream

      Parameters

      Returns Promise<void>