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:
parent
33a6e265b2
commit
01040daf02
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue