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) {
|
public function hash($type, $path, $raw = false) {
|
||||||
$tmpFile = $this->getLocalFile($path);
|
$tmpFile = $this->getLocalFile($path);
|
||||||
$hash = hash($type, $tmpFile, $raw);
|
$hash = hash_file($type, $tmpFile, $raw);
|
||||||
unlink($tmpFile);
|
|
||||||
return $hash;
|
return $hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue