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

    Interface CreateArchiveController

    interface CreateArchiveController {
        addFile(
            name: string,
            data: DataSource,
            modTime: ValidZipDateTimeSources | null,
            options?: { compressionLevel?: number },
        ): Promise<void>;
        addFolder(
            fullPath: string,
            modTime: ValidZipDateTimeSources | null,
        ): Promise<void>;
        hasEntry(fullpath: string): boolean;
    }
    Index

    Methods

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

      Parameters

      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>

    • Test if an entry with the given path has already been added to the archive

      Parameters

      • fullpath: string

      Returns boolean