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.
This commit is contained in:
Maxim Van de Wynckel
2023-02-22 07:44:47 +01:00
committed by GitHub
parent 8c8f8dbd90
commit 6caca33145

View File

@@ -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() {