fix temporary file based common hash
This commit is contained in:
parent
fffe330bbc
commit
7a8f1389fe
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue