10 references to PathInternal
System.Formats.Tar (10)
System\Formats\Tar\TarEntry.cs (2)
524Debug.Assert(PathInternal.EndsInDirectorySeparator(destinationDirectoryFullPath), "caller must ensure the path ends with a separator."); 528return fullPath.StartsWith(destinationDirectoryFullPath, PathInternal.StringComparison) ? fullPath : null;
System\Formats\Tar\TarFile.cs (4)
317destinationDirectoryName = PathInternal.EnsureTrailingSeparator(destinationDirectoryName); 385destinationDirectoryName = PathInternal.EnsureTrailingSeparator(destinationDirectoryName); 434destinationDirectoryName = PathInternal.EnsureTrailingSeparator(destinationDirectoryName); 503destinationDirectoryName = PathInternal.EnsureTrailingSeparator(destinationDirectoryName);
System\Formats\Tar\TarHeader.Write.cs (3)
411int lastIdx = pathNameBytes.LastIndexOfAny(PathInternal.Utf8DirectorySeparators); 430lastIdx = prefix.LastIndexOfAny(PathInternal.Utf8DirectorySeparators); 442Debug.Assert(prefix.Length != 1 || !PathInternal.Utf8DirectorySeparators.Contains(prefix[0]));
System\Formats\Tar\TarHelpers.cs (1)
418return childFullPath.StartsWith(parentFullPath, PathInternal.StringComparison);