This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Description
Pathname resolution is not conforming to POSIX: Trailing slashes lead to problems. The function _FAT_directory_entryFromPath as well as _FAT_diropen_r does not always handle path "foo" as same as "foo/", which should be all the same to "foo/." according to the specification. In particular, this causes opendir("fat:") to fail accessing the root directory. There might be similar problems for other functions (not tested).
Since POSIX does not handle root name of paths, this should be work around separately, or at least provide documented behavior. It seems better to accept opendir("fat:") as other platforms, to save the portability work reasonably. Note that opendir("C:") should work with MinGW-w64.