Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zipjs/index.js>ZipDirectoryEntry#addFileSystemHandle

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
Go to Latest
method ZipDirectoryEntry.prototype.addFileSystemHandle
import { ZipDirectoryEntry } from "https://deno.land/x/zipjs@v2.7.41/index.js";

Adds an entry with content provided via a FileSystemHandle instance

Parameters

fileSystemHandle: FileSystemHandleLike

The fileSystemHandle instance.

optional
options: ZipWriterAddDataOptions

The options.

Returns

Promise<ZipEntry[]>

A promise resolving to an array of ZipFileEntry or a ZipDirectoryEntry instances.