From 10e9cba28594da17316cb91b33e1b809fe5ae100 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Thu, 20 Feb 2020 07:48:51 +0200 Subject: [PATCH] no need to check if directory exists since we are moving not copying --- .../ExtractVendorToSeparateDirectory.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/BuildProcess/ExtractVendorToSeparateDirectory.php b/src/BuildProcess/ExtractVendorToSeparateDirectory.php index db653d32..3628896e 100644 --- a/src/BuildProcess/ExtractVendorToSeparateDirectory.php +++ b/src/BuildProcess/ExtractVendorToSeparateDirectory.php @@ -23,27 +23,9 @@ public function __invoke() Helpers::step('Extracting Vendor Files'); - $this->ensureVendorDirectoryExists(); - (new Filesystem)->move( $this->appPath.'/vendor', $this->buildPath.'/vendor' ); } - - /** - * Ensure that the vendor directory exists. - * - * @return void - */ - protected function ensureVendorDirectoryExists() - { - if ($this->files->isDirectory($this->buildPath.'/vendor')) { - $this->files->deleteDirectory($this->buildPath.'/vendor'); - } - - $this->files->makeDirectory( - $this->buildPath.'/vendor', 0755, true - ); - } }