Navigation

Operators and Keywords

Function List:

C++ API

: filelist = zip (zipfile, files)
: filelist = zip (zipfile, files, rootdir)

Compress the list of files and directories specified in files into the ZIP archive zipfile.

files is a character array or cell array of strings. Shell wildcards in the filename such as ‘*’ or ‘?’ are accepted and expanded. Directories are recursively traversed and all files are compressed and added to the archive.

If rootdir is defined then any files without absolute pathnames are located relative to rootdir rather than the current directory.

The optional output filelist is a list of the files that were included in the archive.

See also: unzip, unpack, bzip2, gzip, tar.

Package: octave