using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Diagnostics.Contracts;
+using System.IO;
using System.Linq;
using System.Net;
using System.Text;
_policies.CollectionChanged += (sender, evt) => { PoliciesChanged = true; };
*/
+ var name = Path.GetFileName(localFolderName);
+ DisplayName = String.Format("{0} Container Properties", name);
+
Shell = shell;
ContainerName = localFolderName;
container.ContinueWith(t =>{
Shell = shell;
LocalFileName = localFileName;
+
+ var name=Path.GetFileName(localFileName);
+ DisplayName = String.Format("{0} File Properties", name);
+
pithosFile.ContinueWith(t =>
{
if (t.IsFaulted)
return true;
if (_ignoreFiles.ContainsKey(filePath.ToLower()))
return true;
-
+
+ //If selective sync is enabled, propagate folder events
+ if (Selectives.IsSelectiveEnabled(AccountInfo.AccountKey) && Directory.Exists(filePath))
+ return false;
//Ignore if selective synchronization is defined,
- //And the target file is not below any of the selective paths
+ //And the target file is not below any of the selective paths
return !Selectives.IsSelected(AccountInfo, filePath);
}
_syncEvent.Set();\r
}\r
\r
+\r
/// <summary>\r
/// Remote files are polled periodically. Any changes are processed\r
/// </summary>\r
Log.DebugFormat("Polling changes after [{0}]",since);\r
\r
Debug.Assert(Thread.CurrentThread.IsBackground, "Polling Ended up in the main thread!");\r
- \r
+\r
+ GC.Collect();\r
\r
using (ThreadContext.Stacks["Retrieve Remote"].Push("All accounts"))\r
{\r