Merge pull request #1970 from markusstoll/bugfixes/mac-improve-fswatcher
Mac FileWatcher - reduce load
This commit is contained in:
commit
af8a521aec
4
SparkleShare/Mac/Watcher.cs
Executable file → Normal file
4
SparkleShare/Mac/Watcher.cs
Executable file → Normal file
|
@ -149,6 +149,10 @@ namespace SparkleShare {
|
|||
if (handler != null) {
|
||||
List<string> filtered_paths = new List<string> ();
|
||||
foreach (var path in paths) {
|
||||
if (path.EndsWith(".git")
|
||||
|| path.Contains ("/.git/"))
|
||||
continue;
|
||||
|
||||
if (path.Length > BasePath.Length) {
|
||||
var t = path.Substring (BasePath.Length);
|
||||
t = t.Trim ("/".ToCharArray ());
|
||||
|
|
Loading…
Reference in a new issue