8000 Fix `fs_rename` · arduino/micropython.js@cd3a616 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd3a616

Browse files
committed
Fix fs_rename
1 parent 51fe0a8 commit cd3a616

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

micropython.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ class MicroPythonBoard {
336336
async fs_rename(oldFilePath, newFilePath) {
337337
if (oldFilePath && newFilePath) {
338338
await this.enter_raw_repl()
339-
const output = await this.exec_raw({
340-
command: `import uos\nuos.rename('${oldFilePath}', '${newFilePath}')`
341-
})
339+
const output = await this.exec_raw(
340+
`import uos\nuos.rename('${oldFilePath}', '${newFilePath}')`
341+
)
342342
return this.exit_raw_repl()
343343
}
344344
return Promise.reject()

0 commit comments

Comments
 (0)
0