PowerTCP SSH and SFTP for .NET
ConvertToUnix(String) Method




A Windows path
Converts a relative or absolute Windows path to a Unix path fragment, and replaces any Unix filesystem-illegal characters with underscores.
Syntax
'Declaration
 
Public Overloads Shared Function ConvertToUnix( _
   ByVal windowsPath As String _
) As String
'Usage
 
Dim windowsPath As String
Dim value As String
 
value = UnixPath.ConvertToUnix(windowsPath)
public static string ConvertToUnix( 
   string windowsPath
)
public: static string* ConvertToUnix( 
   string* windowsPath
) 
public:
static String^ ConvertToUnix( 
   String^ windowsPath
) 

Parameters

windowsPath
A Windows path

Return Value

A Unix-compatible path fragment
Remarks
Typically intended for relative paths, as absolute Windows paths contain root (eg: "C:\" or "\\ServerName"), which may result in unexpected conversions.
See Also

Reference

UnixPath Class
UnixPath Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic