Esempio n. 1
0
 private bool MatchesIncludeSubdirectories([NotNull] AbsolutePath path, [NotNull] AbsolutePath watchDirectory)
 {
     return(includeSubdirectories
         ? path.IsDescendantOf(watchDirectory)
         : AbsolutePath.AreEquivalent(watchDirectory, path.TryGetParentPath()));
 }
Esempio n. 2
0
 private bool IsDeleteOfWatcherDirectory([NotNull] FakeSystemChangeEventArgs args, [NotNull] AbsolutePath pathInArgs)
 {
     return(args.ChangeType == WatcherChangeTypes.Deleted && args.Filters.HasFlag(NotifyFilters.DirectoryName) &&
            AbsolutePath.AreEquivalent(pathInArgs, directoryToWatch));
 }