diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 11:13:51 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-18 13:54:55 +0200 |
commit | 3e94ee391f4ff5eae121dceb520cf7b6409b1f3d (patch) | |
tree | 5d514f55f896210f6604c2d097ad140827a352ae /lib/private/Files/ObjectStore | |
parent | 879fcc4253f74f4cf0d156866dd78c45caf39fac (diff) | |
download | nextcloud-server-3e94ee391f4ff5eae121dceb520cf7b6409b1f3d.tar.gz nextcloud-server-3e94ee391f4ff5eae121dceb520cf7b6409b1f3d.zip |
fix: create intermediate directories for objectstore moveFromStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index c29eb6a63e3..0a31250c477 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -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()); } |