108 'ADD_PATH' => $directory->getName(),
109 'REMOVE_PATH' => $directory->getPhysicalPath(),
112 if (empty($seekPath) && !empty($this->seekPath))
114 $seekPath = $this->seekPath;
117 $counter = \Closure::bind(
120 if ($this instanceof \CArchiver)
123 return \count($this->lastFile) + ($this->tempres ==
"continue" ? 1 : 0);
131 $res = $this->archive->pack([$directory->getPhysicalPath()], $seekPath);
135 case \IBXArchive::StatusContinue:
137 $this->processedFileCount = $counter();
140 case \IBXArchive::StatusSuccess:
141 $this->processedFileCount = $counter();
144 case \IBXArchive::StatusError:
145 $errors = $this->archive->getErrors();
146 if (count($errors) > 0)
148 foreach ($errors as $errorMessage)
150 $this->
addError(
new Main\
Error($errorMessage[1], $errorMessage[0]));
168 $unpack = \Closure::bind(
171 if ($this instanceof \CArchiver)
174 $this->_arErrors = array();
176 $listDetail = array();
178 if ($result = $this->_openRead())
180 $result = $this->_extractList(
$path, $listDetail,
'complete', array(),
'');
185 return \count($listDetail);
195 $res = $unpack($target->getPhysicalPath());
199 $errors = $this->archive->getErrors();
200 if (\count($errors) > 0)
202 foreach ($errors as $errorMessage)
204 $this->
addError(
new Main\
Error($errorMessage[1], $errorMessage[0]));
210 $this->processedFileCount = $res;