]> source.dussan.org Git - nextcloud-server.git/commitdiff
clearstatcache() on rmdir
authorJ0WI <J0WI@users.noreply.github.com>
Fri, 3 Jul 2020 20:42:27 +0000 (22:42 +0200)
committerJ0WI <J0WI@users.noreply.github.com>
Fri, 3 Jul 2020 20:42:27 +0000 (22:42 +0200)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
lib/private/Files/Storage/Local.php

index 4cf3ac4799fa50a43508b68b0dfe194754d1a986..a8fa32f608e7b07452f96d4738c809944f63d78c 100644 (file)
@@ -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;