14 references to TrimEndingDirectorySeparator
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
620builder.Host.UseContentRoot(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory)); 624builder.WebHost.UseContentRoot(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory)); 631Path.TrimEndingDirectorySeparator(Path.GetFullPath(unnormalizedPath));
System.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Formats.Tar (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System\Formats\Tar\TarHeader.Write.cs (1)
1086ReadOnlySpan<char> tmp = Path.TrimEndingDirectorySeparator(Path.GetTempPath());
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Private.CoreLib (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
67string? parentName = Path.GetDirectoryName(PathInternal.IsRoot(FullPath.AsSpan()) ? FullPath : Path.TrimEndingDirectorySeparator(FullPath));
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
38_rootDirectory = Path.TrimEndingDirectorySeparator(path);