/// <summary> /// Recursively checks the consistency of the specified directory /// </summary> public void CheckConsistency(IDirectory directory) { m_Logger.Info($"Starting consistency check, root directory {directory.FullPath}"); m_VisitedNodes.Clear(); directory.Accept(this); }
// private string _pattern; /// <summary> /// Constructs a new instance of a directory watcher that can be used to subscribe to events that signal when changes are made to a directory. /// </summary> /// <param name="autoWatchNewSubFolders">If true, will automatically Watch any new subfolders that happen to be created in any directory currently being watched.</param> public DirectoryWatcher(IDirectory directory) { // _autoWatchNewSubFolders = autoWatchNewSubFolders; _watchingFolders = new ConcurrentDictionary <string, IDirectoryItem>(); _directory = directory; _Filters = new List <Glob>(); _visitMode = VisitMode.Register; _directory.Accept(this); // visit all items in the directory and attach handlers for event notifications. // _pattern = pattern; }