]> _ Git - cubist_util.git/commitdiff
wait #7221 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Dec 2024 18:06:55 +0000 (19:06 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Dec 2024 18:06:55 +0000 (19:06 +0100)
src/Files/VirtualDirectory.php

index 17996e0468885dd2e8d184427fc6bd63a6fc3f53..f6f08a7117ab2f6c7b883b809e16cd9392bcf59f 100644 (file)
@@ -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);