]> _ Git - cubist_util.git/commitdiff
wip #5184 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 12:26:57 +0000 (14:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 12:26:57 +0000 (14:26 +0200)
src/Files/Files.php

index a67e62cf8c56d10bded5ef23e937b37fb3be6c9b..2248a3ff57a88264ce21219f0e38d60460dd25b9 100644 (file)
@@ -135,7 +135,7 @@ class Files
         $do = true;
 
         $frommtime = filemtime($from);
-        if (file_exists($to) && $frommtime === filemtime($to)) {
+        if (file_exists($to) && $frommtime === filemtime($to) && filesize($from) === filesize($to)) {
             if ($hashAlgo) {
                 $do = hash_file($hashAlgo, $from) !== hash_file($hashAlgo, $from);
             } else {