Revision 2341c603 trunk/Pithos.Core/Agents/FileAgent.cs

b/trunk/Pithos.Core/Agents/FileAgent.cs
219 219

  
220 220
        public string CachePath { get; set; }
221 221

  
222
        private List<string> _selectivePaths = new List<string>();
222
        /*private List<string> _selectivePaths = new List<string>();
223 223
        public List<string> SelectivePaths
224 224
        {
225 225
            get { return _selectivePaths; }
226 226
            set { _selectivePaths = value; }
227 227
        }
228
*/
229
        public Selectives Selectives { get; set; }
228 230

  
229 231

  
230 232
        public void Post(WorkflowState workflowState)
......
311 313
                return true;
312 314

  
313 315
            //Ignore if selective synchronization is defined, 
314
            return SelectivePaths.Count > 0 
315 316
                //And the target file is not below any of the selective paths
316
                && !SelectivePaths.Any(filePath.IsAtOrDirectlyBelow);
317
            return !Selectives.IsSelected(AccountInfo, filePath);
317 318
        }
318 319

  
319 320
/*        private static bool FoundInRoot(string filePath, string rootPath)

Also available in: Unified diff