micropython/tools/mpremote/mpremote
Damien George cebc9b0ae2 tools/mpremote: Fix absolute path usage in remote mounted VFS.
Prior to this fix the current working path in the remote VFS would always
be prepended to the requested path to get the full path, even if the
requested path was already absolute, ie starting with "/".

So `os.chdir("/remote/dir1")` would set the working path to "/dir1/", and
a subsequent call with an absolute path like `os.listdir("/remote/dir2")`
would try to list the directory "/dir1/dir2/".

Fixes issue #15308.

Signed-off-by: Damien George <damien@micropython.org>
2024-06-21 16:46:49 +10:00
..
__init__.py tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
__main__.py tools/mpremote: Allow running mpremote with python -m. 2022-03-30 15:29:26 +11:00
commands.py tools/mpremote: Make soft-reset count as an action. 2023-08-10 14:11:53 +10:00
console.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
main.py tools/mpremote: Add support to mip install from GitLab. 2024-05-15 13:32:02 +10:00
mip.py tools/mpremote: Add support to mip install from GitLab. 2024-05-15 13:32:02 +10:00
repl.py tools/mpremote: Detach mpremote from pyboard.py. 2023-06-02 17:42:13 +10:00
transport_serial.py tools/mpremote: Fix absolute path usage in remote mounted VFS. 2024-06-21 16:46:49 +10:00
transport.py tools/mpremote: Detach mpremote from pyboard.py. 2023-06-02 17:42:13 +10:00