aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-07-27 16:55:10 +0200
committerGitHub <noreply@github.com>2024-07-27 16:55:10 +0200
commit0525312cf79fa2893d10b9ff581d50f9403843db (patch)
tree4b195b35ab5da29bf669176b4bf0b8a3ec280a26
parentb964094ebf83fe736658064f84b90b018e7537fb (diff)
parent181aecad4c4c1ab62a5e3e5476cb8cdbe530bbee (diff)
downloadnextcloud-server-0525312cf79fa2893d10b9ff581d50f9403843db.tar.gz
nextcloud-server-0525312cf79fa2893d10b9ff581d50f9403843db.zip
Merge pull request #46027 from dennisverspuij/virtualbox-storage-fix
-rw-r--r--lib/private/Files/Storage/Local.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index ac3696118f7..a65d60bf278 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -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) {