Skip to content

Commit

Permalink
Fix error when dragging to IFS directory with blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjorgensen committed Aug 29, 2024
1 parent e7caf9f commit 658136c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/ifsBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ class IFSBrowserDragAndDrop implements vscode.TreeDragAndDropController<IFSItem>
let result;
switch (action) {
case "copy":
result = await connection.sendCommand({ command: `cp -r ${ifsBrowserItems.map(item => item.path).join(" ")} ${toDirectory.path}` });
result = await connection.sendCommand({ command: `cp -r ${ifsBrowserItems.map(item => Tools.escapePath(item.path)).join(" ")} ${Tools.escapePath(toDirectory.path)}` });
break;

case "move":
result = await connection.sendCommand({ command: `mv ${ifsBrowserItems.map(item => item.path).join(" ")} ${toDirectory.path}` });
result = await connection.sendCommand({ command: `mv ${ifsBrowserItems.map(item => Tools.escapePath(item.path)).join(" ")} ${Tools.escapePath(toDirectory.path)}` });
ifsBrowserItems.map(item => item.parent)
.filter(Tools.distinct)
.forEach(folder => folder?.refresh?.());
Expand Down

0 comments on commit 658136c

Please sign in to comment.