]> _ Git - cubist_util.git/commitdiff
wait #6772 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Mar 2024 15:47:24 +0000 (16:47 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Mar 2024 15:47:24 +0000 (16:47 +0100)
src/Files/VirtualDirectory.php

index b14999106071479004df87d047e6261c04511b93..ac2579d4272caf34e5e34bda21342e6f9915c73d 100644 (file)
@@ -263,6 +263,9 @@ class VirtualDirectory
         $e = Text::explodeNewLines(`cd $this->_path;find . -type f -print0 | xargs -0 ls -l --time-style="+%s"`);
         foreach ($e as $line) {
             $f = preg_split('/\s+/', $line);
+            if (count($f) < 7) {
+                continue;
+            }
             $a = ['size' => (int)$f[4], 'mtime' => (int)$f[5]];
             $this->_attributes[$this->_path . substr($f[6], 2)] = $a;
         }