1 write to _root
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
109_root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(root));
17 references to _root
Microsoft.Extensions.FileProviders.Physical (17)
PhysicalFilesWatcher.cs (17)
125if (!_root.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) && 126!watcherFullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 128throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath, _root), nameof(fileSystemWatcher)); 134_fileWatcherIsAboveRoot = !watcherFullPath.Equals(_root, StringComparison.OrdinalIgnoreCase) && 135_root.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase); 231var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 274var pollingChangeToken = new PollingWildCardChangeToken(_root, pattern); 478if (!fullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 500string relativePath = fullPath.Substring(_root.Length); 570if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(_root)) 577Directory.EnumerateFileSystemEntries(_root, "*", SearchOption.AllDirectories)) 669if (!Directory.Exists(_root)) 680_fileWatcher.Path = _root; 695if (!Directory.Exists(_root)) 707else if (!Directory.Exists(_root)) 765newWatcher = new PendingCreationWatcher(_root); 774if (Directory.Exists(_root))