if (change.ChangeType == WatcherChangeTypes.Renamed)
{
var rename = (MovedEventArgs) change;
- _agent.Post(new WorkflowState
+ _agent.Post(new WorkflowState(change)
{
AccountInfo = AccountInfo,
OldPath = rename.OldFullPath,
});
}
else
- _agent.Post(new WorkflowState
+ _agent.Post(new WorkflowState(change)
{
AccountInfo = AccountInfo,
Path = change.FullPath,
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);
}