public function addFiles($fileOrFiles)
    {
        $files_list = self::createFilesList($fileOrFiles);
        if (empty($files_list))
            throw new InvalidArgumentException('Files list is empty!');
        $result = $this->archive->addFiles($files_list);
        $this->scanArchive();
        return $result;
    }
public function addFiles($fileOrFiles)
    {
        $files_list = self::createFilesList($fileOrFiles);
        if (empty($files_list))
            throw new InvalidArgumentException('Files list is empty!');
        $result = $this->archive->addFiles($files_list);
        $this->scanArchive();
        return $result;
    }
public function addFiles ( $ fileOrFiles ) { $ files_list = self :: createFilesList ( $ fileOrFiles ) ; if ( empty ( $ files_list ) ) throw new InvalidArgumentException ( 'Files list is empty!' ) ; $ result = $ this -> archive -> addFiles ( $ files_list ) ; $ this -> scanArchive ( ) ; return $ result ; }
Updates existing archive by adding new files
@param string[] $fileOrFiles See [[archiveFiles]] method for file list format.
@return int|bool False if failed, number of added files if success
@throws Exception
Updates existing archive by adding new files