From d59432d9b6910aa0c75ebafc0ca72cbd0ec7dc55 Mon Sep 17 00:00:00 2001 From: Trae Yelovich Date: Fri, 4 Oct 2024 11:26:33 -0400 Subject: [PATCH] fix: use path.posix.join when building full path Signed-off-by: Trae Yelovich --- packages/zowe-explorer/src/trees/uss/USSActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zowe-explorer/src/trees/uss/USSActions.ts b/packages/zowe-explorer/src/trees/uss/USSActions.ts index c752ca443..c0a6b5575 100644 --- a/packages/zowe-explorer/src/trees/uss/USSActions.ts +++ b/packages/zowe-explorer/src/trees/uss/USSActions.ts @@ -70,7 +70,7 @@ export class USSActions { const name = await Gui.showInputBox(nameOptions); if (name && filePath) { try { - filePath = `${filePath}/${name}`; + filePath = path.posix.join(filePath, name); const uri = node.resourceUri.with({ path: isTopLevel ? path.posix.join(node.resourceUri.path, filePath) : path.posix.join(node.resourceUri.path, name), });