Skip to content

Commit

Permalink
Add last / to exclude list file path.
Browse files Browse the repository at this point in the history
This Q_ASSERT(this->endsWith('/')) in BasePathByteArray was the reason
for bug report #1458.

Signed-off-by: Camila <hello@camila.codes>
  • Loading branch information
Camila committed Nov 26, 2020
1 parent 820ab12 commit 5bd9ab3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/csync/csync_exclude.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ CSYNC_EXCLUDE_TYPE ExcludedFiles::traversalPatternMatch(const char *path, ItemTy
QFileInfo fi = QFileInfo(_localPath + path + "/.sync-exclude.lst");
if (fi.isReadable()) {
addInTreeExcludeFilePath(fi.absoluteFilePath());
loadExcludeFile(fi.absolutePath().toUtf8(), fi.absoluteFilePath());

const auto basePath = leftIncludeLast(fi.absoluteFilePath().toUtf8(), '/');
loadExcludeFile(basePath, fi.absoluteFilePath());
}
}

Expand Down

0 comments on commit 5bd9ab3

Please sign in to comment.