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)
117
if (!
_root
.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) &&
118
!watcherFullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
120
throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath,
_root
), nameof(fileSystemWatcher));
126
_fileWatcherIsAboveRoot = !watcherFullPath.Equals(
_root
, StringComparison.OrdinalIgnoreCase) &&
127
_root
.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase);
223
var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(
_root
, filePath)));
266
var pollingChangeToken = new PollingWildCardChangeToken(
_root
, pattern);
409
if (!fullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
424
string relativePath = fullPath.Substring(
_root
.Length);
494
if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(
_root
))
501
Directory.EnumerateFileSystemEntries(
_root
, "*", SearchOption.AllDirectories))
580
bool rootExists = Directory.Exists(
_root
);
615
_fileWatcher.Path =
_root
;
630
if (!Directory.Exists(
_root
))
686
newWatcher = new PendingCreationWatcher(
_root
);
695
if (Directory.Exists(
_root
))