From 7a8f1389fec7db92e1da4f4d46bf0b2737bd3482 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 21 Mar 2014 13:23:14 +0100 Subject: fix temporary file based common hash --- lib/private/files/storage/common.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 3c078d7b1b4..2b697141515 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -160,8 +160,7 @@ abstract class Common implements \OC\Files\Storage\Storage { public function hash($type, $path, $raw = false) { $tmpFile = $this->getLocalFile($path); - $hash = hash($type, $tmpFile, $raw); - unlink($tmpFile); + $hash = hash_file($type, $tmpFile, $raw); return $hash; } -- cgit v1.2.3