Skip to content

Commit bd59f93

Browse files
authored
Merge pull request #170 from arduino/bugfix/windows-recursive-upload
WIN: Sanitised path in getFullPath() to convert Windows separators to posix.
2 parents a1ea912 + 64aabf7 commit bd59f93

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)