diff --git a/tdrive/backend/node/src/core/platform/services/storage/index.ts b/tdrive/backend/node/src/core/platform/services/storage/index.ts index e4d3049b..0d9d30d9 100644 --- a/tdrive/backend/node/src/core/platform/services/storage/index.ts +++ b/tdrive/backend/node/src/core/platform/services/storage/index.ts @@ -23,7 +23,7 @@ export default class StorageService extends TdriveService implements private encryptionOptions: EncryptionConfiguration; private algorithm = "aes-256-cbc"; - private homeDir = this.configuration.get("local.path", "/tdrive"); + private homeDir = "/tdrive"; api(): StorageAPI { return this; @@ -50,7 +50,8 @@ export default class StorageService extends TdriveService implements }); } else { logger.info("Using 'local' connector for storage."); - if (!this.homeDir) this.homeDir = "/tdrive"; + const defaultHomeDir = this.configuration.get("local.path"); + if (defaultHomeDir) this.homeDir = `/${defaultHomeDir}`; } logger.info( `Using 'local' connector for storage${