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)
125
if (!
_root
.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) &&
126
!watcherFullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
128
throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath,
_root
), nameof(fileSystemWatcher));
134
_fileWatcherIsAboveRoot = !watcherFullPath.Equals(
_root
, StringComparison.OrdinalIgnoreCase) &&
135
_root
.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase);
231
var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(
_root
, filePath)));
274
var pollingChangeToken = new PollingWildCardChangeToken(
_root
, pattern);
478
if (!fullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
500
string relativePath = fullPath.Substring(
_root
.Length);
570
if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(
_root
))
577
Directory.EnumerateFileSystemEntries(
_root
, "*", SearchOption.AllDirectories))
669
if (!Directory.Exists(
_root
))
680
_fileWatcher.Path =
_root
;
695
if (!Directory.Exists(
_root
))
707
else if (!Directory.Exists(
_root
))
765
newWatcher = new PendingCreationWatcher(
_root
);
774
if (Directory.Exists(
_root
))