mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
clearstatcache() on rmdir
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
b6bbc709b2
commit
ea08a01999
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue