1 write to _root
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
101_root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(root));
16 references to _root
Microsoft.Extensions.FileProviders.Physical (16)
PhysicalFilesWatcher.cs (16)
117if (!_root.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) && 118!watcherFullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 120throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath, _root), nameof(fileSystemWatcher)); 126_fileWatcherIsAboveRoot = !watcherFullPath.Equals(_root, StringComparison.OrdinalIgnoreCase) && 127_root.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase); 223var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 266var pollingChangeToken = new PollingWildCardChangeToken(_root, pattern); 409if (!fullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 424string relativePath = fullPath.Substring(_root.Length); 494if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(_root)) 501Directory.EnumerateFileSystemEntries(_root, "*", SearchOption.AllDirectories)) 580bool rootExists = Directory.Exists(_root); 615_fileWatcher.Path = _root; 630if (!Directory.Exists(_root)) 686newWatcher = new PendingCreationWatcher(_root); 695if (Directory.Exists(_root))