Merge pull request #21135 from nextcloud/backport/21065/stable19

[stable19] Clear the statscache before fetching the metadata
This commit is contained in:
Roeland Jago Douma 2020-05-28 19:44:35 +02:00 committed by GitHub
commit 89f0785c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ class Local extends \OC\Files\Storage\Common {
*/ */
public function getMetaData($path) { public function getMetaData($path) {
$fullPath = $this->getSourcePath($path); $fullPath = $this->getSourcePath($path);
clearstatcache();
$stat = @stat($fullPath); $stat = @stat($fullPath);
if (!$stat) { if (!$stat) {
return null; return null;