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

Pathname with or without trailing slashes for directories #7

Description

@FrankHB

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions