/// <summary> /// Determine if the non-Windows directory separator is detected in a path segment, but if no directory separator is detected, assume the non-Windows directory separator was detected (return true). /// </summary> public static bool IsNonWindowsDirectorySeparatorDetectedAssumeNonWindows(string pathSegment) { var directorySeparator = DirectorySeparator.DetectDirectorySeparatorOrNonWindows(pathSegment); var isNonWindows = DirectorySeparator.IsNonWindowsDirectorySeparator(directorySeparator); return(isNonWindows); }
public string DetectDirectorySeparatorOrNonWindows(string pathSegment) { var output = DirectorySeparator.DetectDirectorySeparatorOrNonWindows(pathSegment); return(output); }