diff options
author | J0WI <J0WI@users.noreply.github.com> | 2020-07-03 22:42:27 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2020-07-03 22:42:27 +0200 |
commit | ea08a019995c856f58516de1d2509f0e2d3c2907 (patch) | |
tree | db926367cd37c35447b052bdeca38ee32ab92f64 /lib/private/Files/Storage/Local.php | |
parent | b6bbc709b21817f207e963394ba891391fbb8079 (diff) | |
download | nextcloud-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.php | 2 |
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; |