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)
109
if (!
_root
.StartsWith(watcherFullPath, StringComparison.OrdinalIgnoreCase) &&
110
!watcherFullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
112
throw new ArgumentException(SR.Format(SR.FileSystemWatcherPathError, watcherFullPath,
_root
), nameof(fileSystemWatcher));
202
var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(
_root
, filePath)));
239
var pollingChangeToken = new PollingWildCardChangeToken(
_root
, pattern);
377
if (!fullPath.StartsWith(
_root
, StringComparison.OrdinalIgnoreCase))
392
string relativePath = fullPath.Substring(
_root
.Length);
452
if ((!_filePathTokenLookup.IsEmpty || !_wildcardTokenLookup.IsEmpty) && Directory.Exists(
_root
))
459
Directory.EnumerateFileSystemEntries(
_root
, "*", SearchOption.AllDirectories))
530
bool rootExists = Directory.Exists(
_root
);
554
_fileWatcher.Path =
_root
;
569
if (!Directory.Exists(
_root
))
625
newWatcher = new PendingCreationWatcher(
_root
);
634
if (Directory.Exists(
_root
))