no need to print a line each time we check for a name clash
always print a line when a clash is detected
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Q_ASSERT(!file.isEmpty());
if (!file.isEmpty() && Utility::fsCasePreserving()) {
- qCDebug(lcPropagator) << "CaseClashCheck for " << file;
#ifdef Q_OS_MAC
const QFileInfo fileInfo(file);
if (!fileInfo.exists()) {
const QString fn = fileInfo.fileName();
const QStringList list = fileInfo.dir().entryList({ fn });
if (list.count() > 1 || (list.count() == 1 && list[0] != fn)) {
+ qCWarning(lcPropagator) << "Detected case clash between" << file << "and" << list.constFirst();
return true;
}
#endif