public static Platform GetDominantDirectorySeparatorPlatform(string pathSegment) { var directorySeparator = DirectorySeparator.DetectDirectorySeparator(pathSegment); var platform = DirectorySeparator.GetPlatformForDirectorySeparator(directorySeparator); return(platform); }
public string DetectDirectorySeparator(string pathSegment) { var output = DirectorySeparator.DetectDirectorySeparator(pathSegment); return(output); }