Is the filesystem case insensitive? */
| 56 | |
| 57 | /** Is the filesystem case insensitive? */ |
| 58 | static constexpr bool caseInsensitiveFilesystem() |
| 59 | { |
| 60 | #if defined(_WIN32) || (defined(__APPLE__) && defined(__MACH__)) |
| 61 | // Windows is case insensitive |
| 62 | // MacOS is case insensitive by default (also supports case sensitivity) |
| 63 | return true; |
| 64 | #else |
| 65 | // TODO: Non-windows filesystems might be case insensitive |
| 66 | // needs to be determined per filesystem and location - e.g. /sys/fs/ext4/features/casefold |
| 67 | return false; |
| 68 | #endif |
| 69 | } |
| 70 | |
| 71 | std::string Path::toNativeSeparators(std::string path) |
| 72 | { |
no outgoing calls
no test coverage detected