Fix call to clearstatcache to actually use the file path

* found while adding the strict_typing for PHP 7+ migration
* first argument is a boolean - second one is the path
* see http://php.net/manual/en/function.clearstatcache.php

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-01-12 13:59:58 +01:00
parent 33a6e265b2
commit 01040daf02
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class Local extends \OC\Files\Storage\Common {
public function filemtime($path) {
$fullPath = $this->getSourcePath($path);
clearstatcache($fullPath);
clearstatcache(true, $fullPath);
if (!$this->file_exists($path)) {
return false;
}