Archive_Tar::add()
Описание
This method adds files and directories to an existing archive. If the archive does not exist, it attempts to create it. The files and directories listed are added at the end of the archive, even if a file with the same name is already archived.
Параметр
mixed $filelist - an array of filenames and directory names, or a single string with names separated by a single blank space. For each directory added in the archive, the files and sub-directories are also added.
Throws
Таблица 40-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | "Invalid file list" | The argument for the function is not correct formatted or build. | Check for typing mistakes in the argument |
Пример
Пример 40-1. Add files to a compressed archive
|
Пред. | Начало | След. |
Archive_Tar::Archive_Tar() | Уровень выше | Archive_Tar::addModify() |