8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a1402 commit 2c26a58Copy full SHA for 2c26a58
micropython.js
@@ -241,12 +241,13 @@ class MicroPythonBoard {
241
let command = `import uos\n`
242
command += `try:\n`
243
command += ` l=[]\n`
244
- command += ` for file in uos.ilistdir("${folderPath}"):\n`
245
- command += ` l.append(list(file))\n`
+ command += ` for f in uos.ilistdir("${folderPath}"):\n`
+ command += ` l.append(list(f))\n`
246
command += ` print(l)\n`
247
command += `except OSError:\n`
248
command += ` print([])\n`
249
command += `del l\n`
250
+ command += `del f\n`
251
await this.enter_raw_repl()
252
let output = await this.exec_raw(command)
253
await this.exit_raw_repl()
0 commit comments