unzip

os.unzip
object unzip

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
unzip.type

Members list

Value members

Concrete methods

def apply(source: Path, dest: Path, excludePatterns: Seq[Regex], includePatterns: Seq[Regex]): Path

Extract the given zip file into the destination directory

Extract the given zip file into the destination directory

Value parameters

dest

The path to the destination directory for extracted files.

excludePatterns

A list of regular expression patterns to exclude files during extraction. (Optional)

source

An os.Path containing a zip file

Attributes

def list(source: Path, excludePatterns: Seq[Regex], includePatterns: Seq[Regex]): Generator[SubPath]

Lists the contents of the given zip file without extracting it

Lists the contents of the given zip file without extracting it

Attributes

def stream(source: Readable, dest: Path, excludePatterns: Seq[Regex], includePatterns: Seq[Regex]): Unit

Unzips a ZIP data stream represented by a geny.Readable and extracts it to a destination directory.

Unzips a ZIP data stream represented by a geny.Readable and extracts it to a destination directory.

Value parameters

dest

The path to the destination directory for extracted files.

excludePatterns

A list of regular expression patterns to exclude files during extraction. (Optional)

source

A geny.Readable object representing the ZIP data stream.

Attributes

def streamRaw(source: Readable, excludePatterns: Seq[Regex], includePatterns: Seq[Regex]): Generator[(ZipEntry, InputStream)]

Low-level api that streams the contents of the given zip file: takes a geny.Reaable providing the bytes of the zip file, and returns a geny.Generator containing ZipEntrys and the underlying ZipInputStream representing the entries in the zip file.

Low-level api that streams the contents of the given zip file: takes a geny.Reaable providing the bytes of the zip file, and returns a geny.Generator containing ZipEntrys and the underlying ZipInputStream representing the entries in the zip file.

Attributes