We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b958ada commit 9ac0358Copy full SHA for 9ac0358
src/libsync/filesystem.cpp
@@ -31,6 +31,11 @@ namespace OCC {
31
bool FileSystem::fileEquals(const QString &fn1, const QString &fn2)
32
{
33
// compare two files with given filename and return true if they have the same content
34
+ auto symlinkTargetFile1 = readlink(fn1);
35
+ auto symlinkTargetFile2 = readlink(fn2);
36
+ if (!symlinkTargetFile1.isEmpty() && symlinkTargetFile1 == symlinkTargetFile2) {
37
+ return true;
38
+ }
39
QFile f1(fn1);
40
QFile f2(fn2);
41
if (!f1.open(QIODevice::ReadOnly) || !f2.open(QIODevice::ReadOnly)) {
0 commit comments