Skip to content

Commit

Permalink
Merge pull request #143 from arduino/bugfix/recursive-upload
Browse files Browse the repository at this point in the history
Fix path resolution
  • Loading branch information
murilopolese authored Dec 4, 2024
2 parents 345a7b3 + 3f749ed commit 098b935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Serial = {
return board.fs_save(content || ' ', filename, dataConsumer)
},
uploadFile: async (src, dest, dataConsumer) => {
return board.fs_put(src, dest, dataConsumer)
return board.fs_put(src, dest.replaceAll(path.win32.sep, path.posix.sep), dataConsumer)
},
downloadFile: async (src, dest) => {
let contents = await Serial.loadFile(src)
Expand Down
2 changes: 1 addition & 1 deletion ui/arduino/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ async function uploadFolder(srcPath, destPath, dataConsumer) {
disk.getFullPath(srcPath, relativePath, ''),
serial.getFullPath(destPath, relativePath, ''),
(progress) => {
dataConsumer(progress, relativePath.slice(1))
dataConsumer(progress, relativePath)
}
)
}
Expand Down

0 comments on commit 098b935

Please sign in to comment.