webrepl
webrepl copied to clipboard
Allow specifying the destination path
When uploading files, it can be convenient to have a directory structure and to be able to specify where a file should go.
Signed-off-by: Igor Stoppa [email protected]
I once implemented the same thing, but then didn’t submit it because I discovered that it’s not needed: The HTML client transfers files with a relative path, which means they go to the current directory on the board and you can use os.chdir()
on the REPL to set that.
(Although I’m not sure whether to consider that a bug or a feature – it might clash with a running program having its own requirements on the CWD, and you can’t change it while a program is running.)
Thank you Igor for this tweak. It is very useful for me when uploading straight to SD card which is mounted to esp. Would be nice to have it merged into master