diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 11:13:51 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-19 17:44:30 +0200 |
commit | f71dce6c9eaa785578b6cf68e1856f2872ad2a30 (patch) | |
tree | 79c67490dc7a01cdf101df1e78ebf82f1bb77132 /lib/private | |
parent | 68e82ba0e5fbdc7a02ac61eee3fe9dd4875d6bf4 (diff) | |
download | nextcloud-server-f71dce6c9eaa785578b6cf68e1856f2872ad2a30.tar.gz nextcloud-server-f71dce6c9eaa785578b6cf68e1856f2872ad2a30.zip |
fix: create intermediate directories for objectstore moveFromStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-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 d57b2d85777..b510980f7fd 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -623,6 +623,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()); } |