clearstatcache() on rmdir

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2020-07-03 22:42:27 +02:00 committed by backportbot[bot]
parent eded52eae7
commit 6f72871ca5
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class Local extends \OC\Files\Storage\Common {
* @var \SplFileInfo $file * @var \SplFileInfo $file
*/ */
$file = $it->current(); $file = $it->current();
clearstatcache(true, $this->getSourcePath($file));
if (in_array($file->getBasename(), ['.', '..'])) { if (in_array($file->getBasename(), ['.', '..'])) {
$it->next(); $it->next();
continue; continue;
@ -118,6 +119,7 @@ class Local extends \OC\Files\Storage\Common {
} }
$it->next(); $it->next();
} }
clearstatcache(true, $this->getSourcePath($path));
return rmdir($this->getSourcePath($path)); return rmdir($this->getSourcePath($path));
} catch (\UnexpectedValueException $e) { } catch (\UnexpectedValueException $e) {
return false; return false;