fix temporary file based common hash

This commit is contained in:
Robin Appelman 2014-03-21 13:23:14 +01:00
parent fffe330bbc
commit 7a8f1389fe
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}