Skip to content

Commit

Permalink
bc zip fix (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiem-mb authored Oct 27, 2023
1 parent 2b34e4b commit b733dfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/baser-core/src/Utility/BcZip.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace BaserCore\Utility;

use Cake\Filesystem\Folder;
use ZipArchive;
use BaserCore\Annotation\NoTodo;
use BaserCore\Annotation\Checked;
Expand Down Expand Up @@ -75,8 +74,8 @@ public function extract($source, $target)
}
if ($result) {
$extractedPath = $target . $this->topArchiveName;
$Folder = new Folder();
$Folder->chmod($extractedPath, 0777);
$Folder = new BcFolder($extractedPath);
$Folder->chmod( 0777);
$this->Zip->close();
return true;
} else {
Expand Down

0 comments on commit b733dfc

Please sign in to comment.