| Contents | Index |
tar(tarfilename,files)
tar(tarfilename,files,rootfolder)
entrynames =
tar(...)
tar(tarfilename,files) creates a tar file named tarfilename from the list of files and folders specified in files. Folders recursively include all of their content. If files includes relative paths, the tar file also contains relative paths. The tar file does not include absolute paths.
tar(tarfilename,files,rootfolder) specifies the path for files relative to rootfolder rather than the current folder. Relative paths in the tar file reflect the relative paths in files, and do not include path information from rootfolder.
entrynames = tar(...) returns a string cell array of the names of the files contained in tarfilename. If files includes relative paths, entrynames also contains relative paths.
tar cannot compress folders larger than 2 GB.
Tar all files in the current folder to the file backup.tgz.
tar('backup.tgz','.');
gunzip | gzip | untar | unzip | zip
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |