PathRemoveTrailingDirectorySeparator Method (String, Boolean) |
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string RemoveTrailingDirectorySeparator(
string path,
bool removeAlternateSeparator
)
Public Shared Function RemoveTrailingDirectorySeparator (
path As String,
removeAlternateSeparator As Boolean
) As String
public:
static String^ RemoveTrailingDirectorySeparator(
String^ path,
bool removeAlternateSeparator
)
static member RemoveTrailingDirectorySeparator :
path : string *
removeAlternateSeparator : bool -> string
Parameters
- path
- Type: SystemString
A text string from which the trailing DirectorySeparatorChar or AltDirectorySeparatorChar is to be removed, when present. - removeAlternateSeparator
- Type: SystemBoolean
If the trailing AltDirectorySeparatorChar character will be removed instead.
Return Value
Type:
StringA text string where the trailing
DirectorySeparatorChar or
AltDirectorySeparatorChar character has been removed. The function returns
when
path is
.
See Also