Simulating case sensitivity on a filesystem that isn't case sensitive

后端 未结 3 1757
遇见更好的自我
遇见更好的自我 2021-02-08 17:19

When I develop in C++ on a filesystem that is not case sensitive, I miss problems such as

#include \"File.h\"

if on disk it is actually f

相关标签:
3条回答
  • 2021-02-08 18:02

    On Mac OS X, you can use Disk Utility to create a case-sensitive file system on a disk image.

    case sensitive DMG

    0 讨论(0)
  • 2021-02-08 18:14

    I'll just throw this out there. Only use lower case filenames. However, I am interested in a more complete and verifiable answer.

    0 讨论(0)
  • 2021-02-08 18:22

    I would be tempted to write something like FileMon (to run externally), and just monitor the file access calls from your IDE to the file system to check for case matches. It's unlikely you're going to get any automated checking from the IDE or the OS (at least, without mucking with the file system). On the other hand, a separate utility monitoring the file access could easily catch such issues (once you get over the hurtle of making the monitoring work).

    My 2c, anyway.

    0 讨论(0)
提交回复
热议问题