16 references to PathUtils
Microsoft.Extensions.FileProviders.Physical (16)
PhysicalFileProvider.cs (9)
61Root = PathUtils.EnsureTrailingSlash(fullRoot); 156string root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(Root)); 224if (PathUtils.PathNavigatesAboveRoot(path)) 259if (string.IsNullOrEmpty(subpath) || PathUtils.HasInvalidPathChars(subpath)) 265subpath = subpath.TrimStart(PathUtils.PathSeparators); 304if (subpath == null || PathUtils.HasInvalidPathChars(subpath)) 310subpath = subpath.TrimStart(PathUtils.PathSeparators); 351if (filter == null || PathUtils.HasInvalidFilterChars(filter)) 357filter = filter.TrimStart(PathUtils.PathSeparators);
PhysicalFilesWatcher.cs (7)
101_root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(root)); 115string watcherFullPath = PathUtils.EnsureTrailingSlash(Path.GetFullPath(fswPath)); 170if (Path.IsPathRooted(filter) || PathUtils.PathNavigatesAboveRoot(filter)) 871ReadOnlySpan<char> remaining = target.AsSpan(existingAncestor.Length).TrimStart(PathUtils.PathSeparators); 872int separator = remaining.IndexOfAny(PathUtils.PathSeparators); 879ReadOnlySpan<char> target = _targetDirectory.AsSpan().TrimEnd(PathUtils.PathSeparators); 880return target.Equals(path.AsSpan().TrimEnd(PathUtils.PathSeparators), StringComparison.OrdinalIgnoreCase);