From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 12:26:57 +0000 (+0200) Subject: wip #5184 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0f78dd1f1b4368690b898da4e9fa30f88fec3c00;p=cubist_util.git wip #5184 @0.25 --- diff --git a/src/Files/Files.php b/src/Files/Files.php index a67e62c..2248a3f 100644 --- a/src/Files/Files.php +++ b/src/Files/Files.php @@ -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 {