paulober / MicroPico

MicroPico (aka Pico-W-Go) is a Visual Studio Code extension designed to simplify and speed up the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards.
https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go
Mozilla Public License 2.0
279 stars 25 forks source link

How can I get a listing of the files already on the Pico? #206

Open frohro opened 7 months ago

frohro commented 7 months ago

In Thonny I can see a list ofo the files on the pico in addition to the files on my laptop. Can we have this feature too?

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

A clear and concise description of what you want to happen. Add any considered drawbacks.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Teachability, Documentation, Adoption, Migration Strategy

If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design?

frohro commented 7 months ago

Well, one way that works is to make a file with this inside it and run it. import os print(os.listdir())

Is there anything better?

paulober commented 7 months ago

Opening the MicroPico vREPL (a custom terminal profile) and type your code or just .ls and press enter. Or opening the virtual filesystem/workspace.