Commit b06ec65e authored by Joachim Priesner's avatar Joachim Priesner Committed by Albert Astals Cid

Ensure all folders created for ignored paths have a trailing slash.

Previously, entries in the ignored path list without a trailing slash
were not ignored during the scan.

Tested on my local file system (Linux) with ignore paths both ending in a slash and not ending in a slash.

REVIEW: 129953
parent ddcc6efd
......@@ -68,7 +68,11 @@ LocalLister::LocalLister(const QString &path, QList<Folder *> *cachedTrees, Scan
foreach(const QString &ignorePath, list) {
if (ignorePath.startsWith(path)) {
m_trees->append(new Folder(ignorePath.toLocal8Bit()));
QString folderName = ignorePath;
if (!folderName.endsWith(QLatin1Char('/'))) {
folderName += QLatin1Char('/');
m_trees->append(new Folder(folderName.toLocal8Bit()));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment