diff --git a/plugins/baser-core/src/Utility/BcZip.php b/plugins/baser-core/src/Utility/BcZip.php index 3d2e763551..7acb36f212 100644 --- a/plugins/baser-core/src/Utility/BcZip.php +++ b/plugins/baser-core/src/Utility/BcZip.php @@ -11,7 +11,6 @@ namespace BaserCore\Utility; -use Cake\Filesystem\Folder; use ZipArchive; use BaserCore\Annotation\NoTodo; use BaserCore\Annotation\Checked; @@ -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 {