/// <summary> /// Determine if the Windows directory separator is detected in a path segment, but if no directory separator is detected, assume the Windows directory separator was detected (return true). /// </summary> public static bool IsWindowsDirectorySeparatorDetectedAssumeWindows(string pathSegment) { var directorySeparator = DirectorySeparator.DetectDirectorySeparatorOrWindows(pathSegment); var isWindows = DirectorySeparator.IsWindowsDirectorySeparator(directorySeparator); return(isWindows); }
public string DetectDirectorySeparatorOrWindows(string pathSegment) { var output = DirectorySeparator.DetectDirectorySeparatorOrWindows(pathSegment); return(output); }