From d093a0418f0a479c159b2ad1f2fe86822692e9b6 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 14:27:49 +0200 Subject: [PATCH] wip #5184 @0.25 --- src/Files/Files.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5