RemotePath.AddDirectorySeparator Method
Adds trailing directory separator to remote/*nix path string.
Syntax
C#
public static string AddDirectorySeparator(string path)
VB.NET
Public Shared Function AddDirectorySeparator(path As String) As String
Parameters
| Name | Description |
|---|---|
| string path | Path to add the separator to. |
Return Value
The path with added directory separator (/). If the input path already ends with a path separator, returns the path unmodified.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | path is null or empty. |