From: Vincent Vanwaelscappel Date: Fri, 24 Nov 2023 15:36:08 +0000 (+0100) Subject: wait #5393 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4d0bd1e964bfb162985fb015c2a326149ffb7573;p=cubist_util.git wait #5393 --- diff --git a/src/Files/Files.php b/src/Files/Files.php index b3900a5..5941590 100644 --- a/src/Files/Files.php +++ b/src/Files/Files.php @@ -151,7 +151,10 @@ class Files $paths = [$paths]; } foreach ($paths as $path) { - $str = $path . '/$$' . filesize($path) . '///' . filemtime($path); + $str = $path . '/$$'; + if (file_exists($path)) { + $str .= filesize($path) . '///' . filemtime($path); + } if ($additionalAttributes) { $str .= '$$$' . print_r($additionalAttributes, true); }