]> _ Git - cubist_util.git/commitdiff
wait #5393
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Nov 2023 15:36:08 +0000 (16:36 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Nov 2023 15:36:08 +0000 (16:36 +0100)
src/Files/Files.php

index b3900a54287df17a8f3e7ce1dfab146ffeb7de3d..59415900eee9b742394a88c55c20df63ee0397ee 100644 (file)
@@ -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);
             }