mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
do not ignore paths containing 2 "#" characters
those path may be in use on Windows and are legitimate Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
13425f4709
commit
f33674e679
3 changed files with 3 additions and 3 deletions
|
@ -127,6 +127,9 @@ void IgnoreListTableWidget::readIgnoreFile(const QString &file, bool readOnly)
|
|||
while (!ignores.atEnd()) {
|
||||
QString line = QString::fromUtf8(ignores.readLine());
|
||||
line.chop(1);
|
||||
if (line == QStringLiteral("\\#*#")) {
|
||||
continue;
|
||||
}
|
||||
if (!line.isEmpty() && !line.startsWith("#")) {
|
||||
bool deletable = false;
|
||||
if (line.startsWith(']')) {
|
||||
|
|
|
@ -49,6 +49,5 @@ System Volume Information
|
|||
|
||||
My Saved Places.
|
||||
|
||||
\#*#
|
||||
|
||||
*.sb-*
|
||||
|
|
|
@ -94,8 +94,6 @@ private slots:
|
|||
QVERIFY(excluded.isExcluded("/a/foo_conflict-bar", "/a", keepHidden));
|
||||
QVERIFY(excluded.isExcluded("/a/foo (conflicted copy bar)", "/a", keepHidden));
|
||||
QVERIFY(excluded.isExcluded("/a/.b", "/a", excludeHidden));
|
||||
|
||||
QVERIFY(excluded.isExcluded("/a/#b#", "/a", keepHidden));
|
||||
}
|
||||
|
||||
void check_csync_exclude_add()
|
||||
|
|
Loading…
Reference in a new issue