From: Vincent Vanwaelscappel Date: Wed, 11 Dec 2024 18:06:55 +0000 (+0100) Subject: wait #7221 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f24ef0ec0260509049a9058a221f1e71ff449a91;p=cubist_util.git wait #7221 @0.5 --- diff --git a/src/Files/VirtualDirectory.php b/src/Files/VirtualDirectory.php index 17996e0..f6f08a7 100644 --- a/src/Files/VirtualDirectory.php +++ b/src/Files/VirtualDirectory.php @@ -183,7 +183,15 @@ class VirtualDirectory protected function _addDirectory($from, $to) { $from = realpath($from); + if (!file_exists($from)) { + $this->log('skipped not existing directory ' . $from . ' (' . $to . ')'); + return; + } Files::listFilesOfDirectory($from, $files); + if(null===$files){ + $this->log('skipped empty directory ' . $from . ' (' . $to . ')'); + return; + } $relativeTo = $this->relativePath($to);