clearstatcache() on rmdir
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
eded52eae7
commit
6f72871ca5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue