| 139 | #endif |
| 140 | |
| 141 | static inline bool |
| 142 | isCaseSensitiveFileSystem(const QString &path) |
| 143 | { |
| 144 | Q_UNUSED(path) |
| 145 | #if defined(Q_OS_WIN) |
| 146 | // Return case insensitive unconditionally, even if someone has a case sensitive |
| 147 | |
| 148 | // file system mounted, wrongly capitalized drive letters will cause mismatches. |
| 149 | return false; |
| 150 | #elif defined(Q_OS_OSX) |
| 151 | |
| 152 | return pathconf(QFile::encodeName(path).constData(), _PC_CASE_SENSITIVE); |
| 153 | #else |
| 154 | |
| 155 | return true; |
| 156 | #endif |
| 157 | } |
| 158 | |
| 159 | #if 0 |
| 160 |