Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Create subdir in relative folder location failed (#1480)

Stanimirfd6afe1e9bcb
diff --git a/app/utils/paths.ts b/app/utils/paths.ts
index 905f898f4..ec29b08fb 100644
--- a/app/utils/paths.ts
+++ b/app/utils/paths.ts
@@ -446,5 +446,9 @@ export function joinPaths(...paths) {
paths[i];
}
}
+ if (AppConfig.isWin && result.startsWith(dirSeparator)) {
+ // trim dirSeparator in windows paths like \C:\
+ return result.substr(dirSeparator.length);
+ }
return result;
}