mirror of
https://github.com/micropython/micropython.git
synced 2025-09-05 01:10:36 +02:00
Currently, certain mpremote filesystem operations can fail on Windows due to a mixing of '/' and '\' for path separators. Eg if filesystem_command() is called with a destination that ends in / then dest.endswith(os.path.sep) will return False, which gives the wrong behaviour (it does end in a path separator). For similar reasons to7e9a15966a
, it's best to use '/' everywhere in pyboard.py and mpremote, because the target device understands only '/'. mpremote already does this, so the remaining place to fix it is in pyboard.y, to convert all incoming paths to use '/' instead of '\'. This effectively reverts57fd66b80f
which tried to fix the problem in a different way. See also related1f84440538
. Signed-off-by: Damien George <damien@micropython.org>