diff --git a/src/mirall/sitecopyconfig.cpp b/src/mirall/sitecopyconfig.cpp index 3b01c230e..addb29ac1 100644 --- a/src/mirall/sitecopyconfig.cpp +++ b/src/mirall/sitecopyconfig.cpp @@ -19,6 +19,11 @@ namespace Mirall { SitecopyConfig::SitecopyConfig() { + // file patterns to be exclude + _ExcludePatterns.append("*.bak"); + _ExcludePatterns.append("*~"); + _ExcludePatterns.append(".*"); + _ExcludePatterns.append("\"#*#\""); } @@ -106,6 +111,10 @@ bool SitecopyConfig::sitecopyConfigToFile() out << " " << configKey << " " << configs[configKey] << '\n'; qDebug() << " Setting: " << configKey << ": " << configs[configKey]; } + foreach( QString pattern, _ExcludePatterns ) { + out << " exclude " << pattern << '\n'; + } + out << '\n'; } configFile.close(); diff --git a/src/mirall/sitecopyconfig.h b/src/mirall/sitecopyconfig.h index fe9693a4a..41a558857 100644 --- a/src/mirall/sitecopyconfig.h +++ b/src/mirall/sitecopyconfig.h @@ -45,8 +45,10 @@ private: QHash > _Sites; QHash _CurrSite; // QHash _ChangesHash; - QString _CurrSiteName; + QStringList _ExcludePatterns; + QString _CurrSiteName; }; + }; #endif // SITECOPYCONFIG_H