mirror of https://github.com/nextcloud/desktop
FolderWatcher: ignore the csync journal
This commit is contained in:
parent
086694f284
commit
e06cfe06fe
|
@ -109,6 +109,7 @@ bool FolderWatcher::pathIsIgnored( const QString& path )
|
|||
|
||||
void FolderWatcher::changeDetected( const QString& path )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << path;
|
||||
// Check if the same path was reported within the last second.
|
||||
if( path == _lastPath && _timer.elapsed() < 1000 ) {
|
||||
// the same path was reported within the last second. Skip.
|
||||
|
|
|
@ -173,8 +173,7 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd)
|
|||
// Note: The name of the changed file and stuff could be taken from
|
||||
// the event data structure. That does not happen yet.
|
||||
if (event->len > 0 && event->wd > -1) {
|
||||
const QString p = _watches[event->wd];
|
||||
_parent->changeDetected(p);
|
||||
_parent->changeDetected(QString::fromLocal8Bit(event->name));
|
||||
}
|
||||
|
||||
// increment counter
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
*.unison*
|
||||
*csync_timedif.ctmp*
|
||||
csync_journal.db
|
||||
csync_journal.db.ctmp
|
||||
.csync_journal.db
|
||||
.csync_journal.db.ctmp
|
||||
.*.sw?
|
||||
.*.*sw?
|
||||
].csync-progressdatabase
|
||||
|
|
Loading…
Reference in New Issue