webrepl icon indicating copy to clipboard operation
webrepl copied to clipboard

Allow specifying the destination path

Open igor-stoppa opened this issue 5 years ago • 2 comments

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]

igor-stoppa avatar Mar 18 '19 08:03 igor-stoppa

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.)

cwalther avatar May 29 '19 21:05 cwalther

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

laky55555 avatar Aug 26 '20 23:08 laky55555