diff --git a/src/Installer.php b/src/Installer.php index 92129f2..4bc3449 100755 --- a/src/Installer.php +++ b/src/Installer.php @@ -287,12 +287,17 @@ public function install() { * The path list. */ public function getSitesPublicFilesPath() { - $finder = new Finder(); - $finder->in($this->appDir . '/sites') - ->depth(0); - $directories = array(); + try { + $finder = new Finder(); + $finder->in($this->appDir . '/sites') + ->depth(0); + } + catch (\Exception $e) { + return $directories; + } + /** @var \Symfony\Component\Finder\SplFileInfo $directory */ foreach ($finder->directories() as $directory) { $publicFilesPath = 'sites/' . $directory->getFilename() . '/files';