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
|
||||
*/
|
||||
$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 New Issue