unzip

Extracts file(s) from the archive, archive, and is defined in the omlziptoolbox.

Syntax

l = unzip(archive)

l = unzip(archive, dir)

Inputs

archive
Name of zip archive to be used for extraction.
Type: string
dir (optional)
Specifies the directory where the files need to be extracted from archive.
Type: string

Outputs

l
List of files extracted from archive. If the file(s) already exist on disk, they will be overwritten.
Type: cell

Examples

Extract files in the current directory:
l = unzip('test.zip')

l =
{
[1,1] input1.oml
[2,1] input2.oml
}
Extract all files in a specified directory:
l = unzip('test.zip', 'c:\dir1')

l =
{
[1,1] input1.oml
[2,1] input2.oml
[3,1] testfiles\abs1.oml
[4,1] testfiles\abs2.oml
[5,1] testfiles\abs3.oml
[6,1] testfiles\abs4.oml
[7,1] testfiles\abs5.oml
[8,1] testfiles\abs6.oml
[9,1] testfiles\abs7.oml
}