QUERY · ISSUE
VFS FatFS: mkdir with trailing slash fails when it should succeed
On CPython and unix uPy, os.mkdir('directory/') makes the requested directory. But on bare metal ports using VFS with FatFS it fails with ENOENT because of the trailing slash. I'd say this should be fixed. (And in fact CPy and unix uPy allow any number of trailing slashes).
CANDIDATE · PULL REQUEST
extmod/vfs_lfsx: Fix errno value raised from chdir.
extmod
Summary
Littlefs was raising a negative errno if chdir failed, when it should be a positive errno.
Testing
Tests have been updated to cover this case (and other cases which were already correct).