UtilitiesEnsurePathIsAbsolute Method |
Ensure that a given path is absolute, if not, applying the root path.
WARNING: This function only works as well as Path.IsPathRooted, which returns "True" for things like "/NoDriveSpecified/fuzzle.txt"
A better approach would be to look at the internal Path.IsRelative method
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string EnsurePathIsAbsolute(
string sRootPath,
string sFilename
)
Public Shared Function EnsurePathIsAbsolute (
sRootPath As String,
sFilename As String
) As String
public:
static String^ EnsurePathIsAbsolute(
String^ sRootPath,
String^ sFilename
)
Parameters
- sRootPath
- Type: SystemString
- sFilename
- Type: SystemString
Return Value
Type:
StringSee Also