From ee28d35a1e89741b58029cfdf0743990da2d51cb Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 26 Sep 2023 10:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=B9=E6=AF=94=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/common/tools/PathToolsBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extend/base/common/tools/PathToolsBase.php b/extend/base/common/tools/PathToolsBase.php index f5b1eff..9b198c8 100644 --- a/extend/base/common/tools/PathToolsBase.php +++ b/extend/base/common/tools/PathToolsBase.php @@ -107,6 +107,10 @@ class PathToolsBase public static function compareFiles($a, $b, $return_diff = false):bool|string { + if(file_exists($a) !== file_exists($b)) { + return false; + } + $result = true; // Check if filesize is different