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)
93_root = PathUtils.EnsureTrailingSlash(Path.GetFullPath(root)); 107string watcherFullPath = PathUtils.EnsureTrailingSlash(Path.GetFullPath(fswPath)); 157if (Path.IsPathRooted(filter) || PathUtils.PathNavigatesAboveRoot(filter)) 798ReadOnlySpan<char> remaining = target.AsSpan(existingAncestor.Length).TrimStart(PathUtils.PathSeparators); 799int separator = remaining.IndexOfAny(PathUtils.PathSeparators); 806ReadOnlySpan<char> target = _targetDirectory.AsSpan().TrimEnd(PathUtils.PathSeparators); 807return target.Equals(path.AsSpan().TrimEnd(PathUtils.PathSeparators), StringComparison.OrdinalIgnoreCase);