summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Local.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-07-03 22:42:27 +0200
committerJ0WI <J0WI@users.noreply.github.com>2020-07-03 22:42:27 +0200
commitea08a019995c856f58516de1d2509f0e2d3c2907 (patch)
treedb926367cd37c35447b052bdeca38ee32ab92f64 /lib/private/Files/Storage/Local.php
parentb6bbc709b21817f207e963394ba891391fbb8079 (diff)
downloadnextcloud-server-ea08a019995c856f58516de1d2509f0e2d3c2907.tar.gz
nextcloud-server-ea08a019995c856f58516de1d2509f0e2d3c2907.zip
clearstatcache() on rmdir
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/private/Files/Storage/Local.php')
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 4cf3ac4799f..a8fa32f608e 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -108,6 +108,7 @@ class Local extends \OC\Files\Storage\Common {
* @var \SplFileInfo $file
*/
$file = $it->current();
+ clearstatcache(true, $this->getSourcePath($file));
if (in_array($file->getBasename(), ['.', '..'])) {
$it->next();
continue;
@@ -118,6 +119,7 @@ class Local extends \OC\Files\Storage\Common {
}
$it->next();
}
+ clearstatcache(true, $this->getSourcePath($path));
return rmdir($this->getSourcePath($path));
} catch (\UnexpectedValueException $e) {
return false;