This fixes a regression in db59e55fe7a0b67d3af868990468e7b8056afe42: prior to that commit `mpremote` supported trailing slashes on the destination of a normal (non-recursive) copy. Add back support for that, with the semantics that a trailing slash requires the destination to be an existing directory. Also add a test for this. Signed-off-by: Damien George <damien@micropython.org>
Tests for mpremote
This directory contains a set of tests for mpremote.
Requirements:
- A device running MicroPython connected to a serial port on the host.
- Python 3.x,
bashand various Unix tools such asfind,mktemp,sed,sort,tr.
To run the tests do:
$ ./run-mpremote-tests.sh
Each test should print "OK" if it passed. Otherwise it will print "CRASH", or "FAIL" and a diff of the expected and actual test output.