mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Manual exclude are anchored to _localPath by default
This makes a lot of sense, since there should be no file to be synced outside of _localPath. Signed-off-by: Samir Benmendil <me@rmz.io>
This commit is contained in:
parent
e27645cb00
commit
7a9b13a563
2 changed files with 7 additions and 1 deletions
|
@ -281,6 +281,11 @@ void ExcludedFiles::setExcludeConflictFiles(bool onoff)
|
|||
_excludeConflictFiles = onoff;
|
||||
}
|
||||
|
||||
void ExcludedFiles::addManualExclude(const QByteArray &expr)
|
||||
{
|
||||
addManualExclude(expr, _localPath.toUtf8());
|
||||
}
|
||||
|
||||
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
|
||||
{
|
||||
Q_ASSERT(basePath.startsWith('/'));
|
||||
|
|
|
@ -101,7 +101,8 @@ public:
|
|||
* Primarily used in tests. Patterns added this way are preserved when
|
||||
* reloadExcludeFiles() is called.
|
||||
*/
|
||||
void addManualExclude(const QByteArray &expr, const QByteArray &basePath = "/");
|
||||
void addManualExclude(const QByteArray &expr);
|
||||
void addManualExclude(const QByteArray &expr, const QByteArray &basePath);
|
||||
|
||||
/**
|
||||
* Removes all manually added exclude patterns.
|
||||
|
|
Loading…
Reference in a new issue