예제 #1
0
        public override bool Accept(IActivityMonitor m, DeletedDiff deletedDiff)
        {
            var matchingPath = DiffRoot.Paths.FirstOrDefault(path => deletedDiff.Path.StartsWith(path));

            if (matchingPath != null)
            {
                m.Debug($"Deleted file ({deletedDiff.Path}) matched with one of the DiffRoot '{DiffRoot.Name}' path: {matchingPath}");
                DeletedDiffs.Add(deletedDiff);
                return(true);
            }
            m.Debug($"Deleted file ({deletedDiff.Path}) did not match with any of the DiffRoot '{DiffRoot.Name}' paths.");
            return(false);
        }
 public abstract bool Accept(IActivityMonitor m, DeletedDiff deletedDiff);
예제 #3
0
 public override bool Accept(IActivityMonitor m, DeletedDiff deletedDiff)
 {
     DeletedDiffs.Add(deletedDiff);
     return(true);
 }