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

This commit is contained in:
John Molakvoæ 2024-07-27 16:55:10 +02:00 committed by GitHub
commit 0525312cf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {