Class CreateArchiveController
Index
Constructors
Methods
Constructors
constructor
Parameters
- writer: ZipArchiveWriter
Returns CreateArchiveController
Methods
add File
- addFile(
name: string,
data:
| string
| Blob
| ArrayBuffer
| Uint8Array<ArrayBufferLike>
| ReadableStream<Uint8Array<ArrayBufferLike>>,
modTime: null | ValidZipDateTimeSources,
options?: { compressionLevel?: number },
): Promise<void>Parameters
- name: string
- data:
| string
| Blob
| ArrayBuffer
| Uint8Array<ArrayBufferLike>
| ReadableStream<Uint8Array<ArrayBufferLike>> - modTime: null | ValidZipDateTimeSources
Optional
options: { compressionLevel?: number }
Returns Promise<void>
add Folder
Adds a folder to the archive, returns when the folder data has been streamed to the archive stream
Parameters
- fullPath: string
- modTime: null | ValidZipDateTimeSources
Returns Promise<void>
Adds a file to the archive, returns when the file data has been streamed to the archive stream