Skip to content

Commit 098b935

Browse files
authored
Merge pull request #143 from arduino/bugfix/recursive-upload
Fix path resolution
2 parents 345a7b3 + 3f749ed commit 098b935

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

preload.js

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

ui/arduino/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ async function uploadFolder(srcPath, destPath, dataConsumer) {
15361536
disk.getFullPath(srcPath, relativePath, ''),
15371537
serial.getFullPath(destPath, relativePath, ''),
15381538
(progress) => {
1539-
dataConsumer(progress, relativePath.slice(1))
1539+
dataConsumer(progress, relativePath)
15401540
}
15411541
)
15421542
}

0 commit comments

Comments
 (0)