From 01744274eb6d70a645bfb4eea14caad68e608087 Mon Sep 17 00:00:00 2001 From: Anton SHEPILOV Date: Thu, 31 Oct 2024 15:09:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FDefault=20value=20for=20stora?= =?UTF-8?q?ge=20home=20directory=20doesn't=20start=20with=20'/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/core/platform/services/storage/storage-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/core/platform/services/storage/storage-service.ts b/tdrive/backend/node/src/core/platform/services/storage/storage-service.ts index 7ef194a2..0427d2d0 100644 --- a/tdrive/backend/node/src/core/platform/services/storage/storage-service.ts +++ b/tdrive/backend/node/src/core/platform/services/storage/storage-service.ts @@ -38,7 +38,7 @@ export default class StorageService extends TdriveService implements * But for the local storage it's a default value * @private */ - private homeDir = "/tdrive"; + private homeDir = "tdrive"; constructor(protected options?: TdriveServiceOptions) { super(options); @@ -277,6 +277,9 @@ export default class StorageService extends TdriveService implements this.logger.error("For S3 connector home directory MUST NOT start with '/'"); throw new Error("For S3 connector home directory MUST NOT start with '/'"); } + } else { + this.logger.info("For 'local' connector setting home directory to '/tdrive'"); + this.homeDir = "/tdrive"; } } }