If the folder has different case in the settings and in the FS, we should
not ignore all the files. This is important for the files system watcher.
(cherry picked from commit
98268d102fb343c103cbb4fb28dedd390f3c9ecf)
*/
#include "excludedfiles.h"
+#include "utility.h"
#include <QFileInfo>
const QString& basePath,
bool excludeHidden) const
{
- if (!filePath.startsWith(basePath)) {
+ if (!filePath.startsWith(basePath, Utility::fsCasePreserving() ? Qt::CaseInsensitive : Qt::CaseSensitive)) {
// Mark paths we're not responsible for as excluded...
return true;
}