Checking for case-sensitive filenames on Windows

About Monkey 2 Forums Monkey 2 Code Library Checking for case-sensitive filenames on Windows

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 1 year, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12241

    nerobot
    Participant

    As you may know, Windows has case-insensitive file system.

    Below you can see the function that gives you case-sensitive filename by possible case-insensitive path.

    NOTE: there is a fix for a filename part of path only, casing of directory part remains as is.

    #12242

    nerobot
    Participant

    There also is libc.realpath() function, maybe it’s a better solution?

    But I couldn’t to cope with it.

    #12246

    Amon
    Participant

    Cool.

    Dude, you’re on a useful tool/snippet/fix/module, mission. Thank you. Your motivation is quite impressive and I’d like to emulate that. I’ll try. 🙂

    #12247

    nerobot
    Participant

    Yeah! 🙂

    I found this solution fixing that: https://github.com/engor/Ted2Go/issues/84

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.