OptionalcodecThe compression of the output.
OptionalcodecOptionalcwdThe normalized form of opt.cwd.
True after end().
OptionalfsProtected OptionalheadThe options of WriteEntry.encode.
Protected OptionaltailProtected OptionalwakePut a path, an entry, or a source of entries at the end of the queue. A directory is added with all that is in it.
ProtectedaddedMake the entry to write for an entry that the caller added.
undefined if the filter refuses an entry of another archive.
ProtectedchangedReport a path that is a different object after its lstat.
ProtectedchildrenAdd no more. The archive ends after the last item of the queue.
ProtectedmissingReport a path that does not exist, and skip it. Each other error of the stat is thrown.
ProtectedneedsTrue if the pack must read the exact dev and ino of the
object with the bigint option: the numbers are not exact, and a
wrong match loses data. That is a file with more than one link,
which a wrong match makes a hard link to a different file, and
with follow a directory, which a wrong match skips as a
directory in itself. Each other object gets no second stat.
ProtectedpathMake the entry for a path.
ProtectedplanThe type of the entry to write for a path, or undefined to
write no entry. The pack calls it one time for each path, in the
order of the queue. id is the stat, or the exact dev and ino
of the object.
ProtectedpushThe absolute form of a path that is relative to cwd.
Stop, and close each file that is open.
Protectedshift
Makes an archive.
add()paths and entries, thenend(). The pack is the async iterator of the bytes of the archive, compressed if an option selects a codec.It reads the file system only when the consumer asks for bytes. Then it reads the first
jobspaths of the queue at the same time, and writes them in the order of the queue. The entries of a directory go to the end of the queue.return()closes each file that is open.