Added synchronization of newly added selective paths instead of polling all files
authorpkanavos <pkanavos@gmail.com>
Thu, 14 Jun 2012 20:45:44 +0000 (23:45 +0300)
committerpkanavos <pkanavos@gmail.com>
Thu, 14 Jun 2012 20:45:44 +0000 (23:45 +0300)
trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
trunk/Pithos.Core/PithosMonitor.cs

index c05af8a..c23928a 100644 (file)
@@ -1025,7 +1025,8 @@ namespace Pithos.Client.WPF {
                        if (account != null)
                        {
                            _pollAgent.SetSelectivePaths(account, message.Added, message.Removed);
-                    _pollAgent.SynchNow();
+                           var added=monitor.UrisToFilePaths(message.Added);
+                    _pollAgent.SynchNow(added);
                        }
                    });
 
index 4d4b4ff..c5b18ea 100644 (file)
@@ -497,7 +497,7 @@ namespace Pithos.Core
         /// </summary>
         /// <param name="uris"></param>
         /// <returns></returns>
-        private List<string> UrisToFilePaths(IEnumerable<Uri> uris)
+        public List<string> UrisToFilePaths(IEnumerable<Uri> uris)
         {
             if (uris == null)
                 return new List<string>();