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

index 2248a3ff57a88264ce21219f0e38d60460dd25b9..2481fee546adece444ed57b299ed8b6e06227c1d 100644 (file)
@@ -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;