diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-03-07 11:09:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 11:09:19 +0100 |
commit | b7088e707151d3a91cca6cb4d3950f92c73a94eb (patch) | |
tree | 7a7d1fad5a583865027210fd8c900de205043cf0 /lib/private/Files/ObjectStore | |
parent | 6c04942e2b82ea50929507b4c59610ca45332b12 (diff) | |
parent | 4fba4cd14ce78e3e0af64a97485a02e47640a144 (diff) | |
download | nextcloud-server-b7088e707151d3a91cca6cb4d3950f92c73a94eb.tar.gz nextcloud-server-b7088e707151d3a91cca6cb4d3950f92c73a94eb.zip |
Merge pull request #32163 from nextcloud/file-cache-gc-no-full-setup
don't perform an explicit setup when using the file cache
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); |