From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 12:27:49 +0000 (+0200) Subject: wip #5184 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d093a0418f0a479c159b2ad1f2fe86822692e9b6;p=cubist_util.git wip #5184 @0.25 --- diff --git a/src/Files/Files.php b/src/Files/Files.php index 2248a3f..2481fee 100644 --- a/src/Files/Files.php +++ b/src/Files/Files.php @@ -130,6 +130,10 @@ class Files return $f->getBasename($suffix); } + public function hashFileAttributes($path){ + return hash('sha256',$path.'/$$'.filesize($path).'///'.filemtime($path)); + } + public static function copyFile($from, $to, $hashAlgo = false) { $do = true;