/// <summary> /// Look for a parent node of the given path (if it exists) and /// ask it to refresh. This is necessary because filesystemwatcher /// doesn't always work over network shares. /// </summary> public void WatchParentOf(string path) { string parent = Path.GetDirectoryName(path); WatcherNode node = tree.NodeMap[parent] as WatcherNode; if (node != null) { node.UpdateLater(); } }