Skip to content

Commit 28b69de

Browse files
authored
Merge pull request #146 from arduino/bugfix/recursive-upload-patch
Bugfix/recursive upload patch
2 parents 85c937d + a4677a2 commit 28b69de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Serial = {
6060
return board.fs_save(content || ' ', filename, dataConsumer)
6161
},
6262
uploadFile: async (src, dest, dataConsumer) => {
63-
return board.fs_put(src, dest, dataConsumer)
63+
return board.fs_put(src, dest.replaceAll(path.win32.sep, path.posix.sep), dataConsumer)
6464
},
6565
downloadFile: async (src, dest) => {
6666
let contents = await Serial.loadFile(src)

0 commit comments

Comments
 (0)