Merge pull request #46027 from dennisverspuij/virtualbox-storage-fix

pull/46826/head
John Molakvoæ 2024-07-27 16:55:10 +07:00 committed by GitHub
commit 0525312cf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

@ -117,6 +117,7 @@ class Local extends \OC\Files\Storage\Common {
}
$it->next();
}
unset($it); // Release iterator and thereby its potential directory lock (e.g. in case of VirtualBox shared folders)
clearstatcache(true, $this->getSourcePath($path));
return rmdir($this->getSourcePath($path));
} catch (\UnexpectedValueException $e) {