Skip to content

Commit

Permalink
no need to check if directory exists since we are moving not copying
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Feb 20, 2020
1 parent bfd7680 commit 10e9cba
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/BuildProcess/ExtractVendorToSeparateDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,9 @@ public function __invoke()

Helpers::step('<bright>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
);
}
}

0 comments on commit 10e9cba

Please sign in to comment.