Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement file delete (rm) and directory listing (ls) functions #12

Open
askvictor opened this issue Aug 6, 2016 · 3 comments
Open

Comments

@askvictor
Copy link

I know these can be performed over via the REPL, but so can the get_file and put_file commands; it would be nice to have the basic filesystem primitives running over the same channel.

@pfalcon
Copy link
Contributor

pfalcon commented Aug 6, 2016

Right, that's how webrepl protocol should evolve. There should be planning for the order of operations to be added, to minimize upfront effort/maximize outcome, however. And the next one to add is GET_VER, to control new versions of the protocol: micropython/micropython@e15fb33.

And here's how community can help: integrate check for GET_VER into webrepl.html .

@gkzsolt
Copy link

gkzsolt commented Dec 18, 2022

Hi,
is there any news on this, is it on the roadmap at least? I use WEBREPL for my uPython projects over the years, and love it, being very nice and useful. However, now I have to dump all files on one of my boards, and I have to disconnect it and open the box to plug a USB in, just to get a directory listing.
Thank you for your work!
Best,

@gigawatts
Copy link

Waiting for this as well, but for now, here is my hack

Insert this into boot.py

from os import listdir as ls
ls = ls()

now you can just run ls at a repl prompt to get a list of files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants