Dart.Ssh Namespace > UnixPath Class > Combine Method : Combine(String,String) Method |
'Declaration Public Overloads Shared Function Combine( _ ByVal unixPath1 As String, _ ByVal unixPath2 As String _ ) As String
Exception | Description |
---|---|
System.ArgumentNullException | unixPath1 or unixPath2 is null. |
System.ArgumentException | unixPath1 or unixPath2 contains a Unix filesystem-illegal character, NUL. |
If unixPath1 does not end with UnixDirectorySeparatorChar, it is appended to unixPath1 before concatenation.
If unixPath2 is a relative path (unixPath2 does not start with UnixDirectorySeparatorChar), the result is a concatenation of the two paths, with an intervening separator character. If unixPath2 is an absolute path, unixPath2 is returned.
White space is not parsed. Therefore, if unixPath2 starts with white space (for example, " /file.txt "), the Combine method appends unixPath2 to unixPath1 instead of returning only unixPath2.