From: Vincent Vanwaelscappel Date: Wed, 6 Mar 2024 15:47:24 +0000 (+0100) Subject: wait #6772 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bb5eda4abfafcb8d6c1443eaff46f57e1a7c4f51;p=cubist_util.git wait #6772 @0.5 --- diff --git a/src/Files/VirtualDirectory.php b/src/Files/VirtualDirectory.php index b149991..ac2579d 100644 --- a/src/Files/VirtualDirectory.php +++ b/src/Files/VirtualDirectory.php @@ -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; }