diff options
author | Damien George <damien@micropython.org> | 2024-06-20 12:11:26 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-06-21 16:46:49 +1000 |
commit | cebc9b0ae2b12c61eac39a3c599edb3b1b65dd54 (patch) | |
tree | 9f04fdab4abffe5f25c51868d4c73ddb878ac828 /tests/basics/int_bytes.py | |
parent | 0619f261a82ead92bbd05ba387ebb3292ae62de9 (diff) |
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>
Diffstat (limited to 'tests/basics/int_bytes.py')
0 files changed, 0 insertions, 0 deletions