Przeglądaj źródła

Make encrypted folder paths to delete non-relative when checking if they are encrypted

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra 3 lat temu
rodzic
commit
95aa3ee53b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/gui/folder.cpp

+ 1 - 1
src/gui/folder.cpp

@@ -1341,7 +1341,7 @@ void Folder::removeLocalE2eFiles()
     const auto couldGetFiles = _journal.getFilesBelowPath("", [this, &e2eFoldersToBlacklist, &folderRootDir](const SyncJournalFileRecord &rec) {
         // We only want to add the root-most encrypted folder to the blacklist
         if (rec.isValid() && rec._isE2eEncrypted && rec.isDirectory()) {
-            QDir pathDir(rec._path);
+            QDir pathDir(_canonicalLocalPath + rec.path());
             bool parentPathEncrypted = false;
 
             while (pathDir.cdUp() && pathDir != folderRootDir) {