完成新的更新逻辑

This commit is contained in:
2023-10-18 17:35:18 +08:00
parent c941f12884
commit 9059f1cf12
2 changed files with 157 additions and 144 deletions

View File

@@ -104,6 +104,13 @@ class PathToolsBase
return str_replace('/', '\\', $content);
}
/**
* 比较两个文件是否相同
*
* @param string $a
* @param string $b
* @return boolean 如果一致返回true否则返回false
*/
public static function compareFiles($a, $b):bool
{
if (file_exists($a) !== file_exists($b)) {