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.
- dir (optional)
- Specifies the directory where the files need to be extracted from archive.
Outputs
- l
- List of files extracted from archive. If the file(s) already exist on disk, they will be overwritten.
Examples
addtoolbox('omlziptoolbox')
l = unzip('test.zip')
l =
{
[1,1] input1.oml
[2,1] input2.oml
}
addtoolbox('omlziptoolbox')
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
}