klyn.io.archives.Archiver.makeArchive
method
public abstract makeArchive(sourcePath as String, archivePath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException:
Description

Creates an archive from a file or directory.

Parameters
  • sourcePath File or directory to archive.
  • archivePath Archive file to create.
  • mode Target file creation policy.
Throws
  • IOException if archive input/output fails, paths are invalid, or the requested archive mode cannot be honored.