Skip to content

Commit 64aabf7

Browse files
committed
Sanitised path in getFullPath() to convert Windows separators to posix.
Signed-off-by: ubi de feo <[email protected]>
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

+1-1
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)