1 write to _root
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
93_root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(root));
14 references to _root
Microsoft.Extensions.FileProviders.Physical (14)
PhysicalFilesWatcher.cs (14)
109if (!_root.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) && 110!watcherFullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 112throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath, _root), nameof(fileSystemWatcher)); 202var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 239var pollingChangeToken = new PollingWildCardChangeToken(_root, pattern); 377if (!fullPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase)) 392string relativePath = fullPath.Substring(_root.Length); 452if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(_root)) 459Directory.EnumerateFileSystemEntries(_root, "*", SearchOption.AllDirectories)) 530bool rootExists = Directory.Exists(_root); 554_fileWatcher.Path = _root; 569if (!Directory.Exists(_root)) 625newWatcher = new PendingCreationWatcher(_root); 634if (Directory.Exists(_root))