mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #30576 from nextcloud/backport/30565/stable23
[stable23] Fix fail when keys/files folder already exists
This commit is contained in:
commit
ad5501a464
1 changed files with 5 additions and 1 deletions
|
|
@ -768,7 +768,11 @@ class Encryption extends Wrapper {
|
|||
|
||||
if ($sourceStorage->is_dir($sourceInternalPath)) {
|
||||
$dh = $sourceStorage->opendir($sourceInternalPath);
|
||||
$result = $this->mkdir($targetInternalPath);
|
||||
if (!$this->is_dir($targetInternalPath)) {
|
||||
$result = $this->mkdir($targetInternalPath);
|
||||
} else {
|
||||
$result = true;
|
||||
}
|
||||
if (is_resource($dh)) {
|
||||
while ($result and ($file = readdir($dh)) !== false) {
|
||||
if (!Filesystem::isIgnoredDir($file)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue