mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Release directory iterator and thereby its potential directory lock prior to deleting a directory, to avoid e.g. "Text file busy" error with VirtualBox shared folder storage
Signed-off-by: Dennis Verspuij <6680484+dennisverspuij@users.noreply.github.com>
This commit is contained in:
parent
b964094ebf
commit
181aecad4c
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue