refactoring

This commit is contained in:
Milos Stojanovic
2019-06-14 12:46:45 +02:00
parent 667389ab1a
commit f6185c92ab
14 changed files with 1019 additions and 34 deletions

View File

@@ -96,7 +96,7 @@ class ZipArchiver implements Service, ArchiverInterface
foreach ($contents as $item) {
$stream = $archive->readStream($item['path']);
if ($item['type'] == 'dir') {
$storage->createDir($destination, $item['path'], $stream);
$storage->createDir($destination, $item['path']);
}
if ($item['type'] == 'file') {
$storage->store($destination.'/'.$item['dirname'], $item['basename'], $stream);