From 6caca33145292cfe7a536b1d4c10effbaf7b8dde Mon Sep 17 00:00:00 2001 From: Maxim Van de Wynckel Date: Wed, 22 Feb 2023 07:44:47 +0100 Subject: [PATCH] fix(#174): correctly append trailing slash in windows Windows requires a backslash instead of a forward slash. As this variable is used in a simple string replace, this needs to be platform specific. --- src/Repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository.ts b/src/Repository.ts index 94441d7..eee1ce0 100644 --- a/src/Repository.ts +++ b/src/Repository.ts @@ -370,7 +370,7 @@ export default class Repository { } get originalCachePath() { - return join(this._model.repoId, "original") + "/"; + return join(this._model.repoId, "original") + (process.platform === "win32" ? "\\" : "/"); } get status() {