mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 17:16:55 -04:00
fix: create intermediate directories for objectstore moveFromStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
879fcc4253
commit
3e94ee391f
1 changed files with 1 additions and 0 deletions
|
|
@ -602,6 +602,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil
|
|||
$sourceCacheEntry = $sourceCache->get($sourceInternalPath);
|
||||
}
|
||||
if ($sourceCacheEntry->getMimeType() === FileInfo::MIMETYPE_FOLDER) {
|
||||
$this->mkdir($targetInternalPath);
|
||||
foreach ($sourceCache->getFolderContents($sourceInternalPath) as $child) {
|
||||
$this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue