I'm trying to use this with a LoPy board but I have some trouble with the ls function. What happens is that the excepted PyboardError for directories doesn't include the word "ENOENT" but is rather the normal "OSError: no such file or directory". This leads to the exception being raised and mpfshell crashing. Changing the check to look for that string works fine but that entire code should be changed for something that actually checks if it is a file or a directory.
I'm trying to use this with a LoPy board but I have some trouble with the ls function. What happens is that the excepted PyboardError for directories doesn't include the word "ENOENT" but is rather the normal "OSError: no such file or directory". This leads to the exception being raised and mpfshell crashing. Changing the check to look for that string works fine but that entire code should be changed for something that actually checks if it is a file or a directory.