Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_canonical/absolute/normalize_path() functions #100

Merged
merged 1 commit into from
Jul 4, 2024

Commits on Jul 3, 2024

  1. Fix get_canonical/absolute/normalize_path() functions (fix aseprite#98)

    Several refactors in this commit:
    
    - Moved is_path_separator() function and path_separator as a constexpr
      to the header file
    - Added path_separators string (for Windows, which includes \ and /)
    - get_canonical_path() works only when the file exists (returns an
      empty string in other case)
    - normalize_path() and get_absolute_path() work in a lexical level,
      handling only strings and getting the current path when needed, but
      without checking the existence of the file
    dacap committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    2a25a91 View commit details
    Browse the repository at this point in the history