diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-28 15:39:01 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-03-06 17:52:24 +0100 |
commit | 4fba4cd14ce78e3e0af64a97485a02e47640a144 (patch) | |
tree | d82e8508af958ac1702c5cfa00eaa32f33df38e5 /lib/private/Files/ObjectStore | |
parent | af466a0d3ac20a2b459fcc2051525297633ea7e9 (diff) | |
download | nextcloud-server-4fba4cd14ce78e3e0af64a97485a02e47640a144.tar.gz nextcloud-server-4fba4cd14ce78e3e0af64a97485a02e47640a144.zip |
fix: fix user folder init
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index 7eb284fc774..3ef13f0ab01 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -82,6 +82,14 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil if (isset($params['validateWrites'])) { $this->validateWrites = (bool)$params['validateWrites']; } + + // home storage is setup in the SetupManager + if (!$this instanceof HomeObjectStoreStorage) { + //initialize cache with root directory in cache + if (!$this->is_dir('/')) { + $this->mkdir('/'); + } + } $this->handleCopiesAsOwned = (bool)($params['handleCopiesAsOwned'] ?? false); $this->logger = \OCP\Server::get(LoggerInterface::class); |