PowerTCP FTP for .NET
ConvertToUnix(String,String,String) Method



A relative or absolute Windows path.
The root to remove from the beginning of windowsPath.
The root to prepend to the Unix path.
Converts a Windows path to a Unix path, replacing windowsRoot with unixRoot, and any Unix filesystem-illegal characters with underscores.
Syntax
Public Overloads Shared Function ConvertToUnix( _
   ByVal windowsPath As String, _
   ByVal windowsRoot As String, _
   ByVal unixRoot As String _
) As String
Dim windowsPath As String
Dim windowsRoot As String
Dim unixRoot As String
Dim value As String
 
value = UnixPath.ConvertToUnix(windowsPath, windowsRoot, unixRoot)
public static string ConvertToUnix( 
   string windowsPath,
   string windowsRoot,
   string unixRoot
)
public:
static String^ ConvertToUnix( 
   String^ windowsPath,
   String^ windowsRoot,
   String^ unixRoot
) 

Parameters

windowsPath
A relative or absolute Windows path.
windowsRoot
The root to remove from the beginning of windowsPath.
unixRoot
The root to prepend to the Unix path.

Return Value

A sanitized Unix path equivalent to windowsPath under unixRoot.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionwindowsPath, windowsRoot or unixRoot is null.
Remarks
If unixRoot is an empty string, returns a relative path.
See Also

Reference

UnixPath Class
UnixPath Members
Overload List


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic