8000 Sanitised path in getFullPath() to convert Windows separators to posix. · arduino/lab-micropython-editor@64aabf7 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64aabf7

Browse files
committed
Sanitised path in getFullPath() to convert Windows separators to posix.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent a1ea912 commit 64aabf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/serial/serial-bridge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const SerialBridge = {
9797
return path.posix.join(navigation, target)
9898
},
9999
getFullPath: (root, navigation, file) => {
100-
return path.posix.join(root, navigation, file)
100+
return path.posix.join(root, navigation.replaceAll(path.win32.sep, path.posix.sep), file.replaceAll(path.win32.sep, path.posix.sep))
101101
},
102102
getParentPath: (navigation) => {
103103
return path.posix.dirname(navigation)

0 commit comments

Comments
 (0)
0