Click or drag to resize
PathRemoveTrailingDirectorySeparator Method (String, Boolean)
[AlphaFS] Removes the trailing DirectorySeparatorChar or AltDirectorySeparatorChar character from the string, when present.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static string RemoveTrailingDirectorySeparator(
	string path,
	bool removeAlternateSeparator
)

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: String
A text string where the trailing DirectorySeparatorChar or AltDirectorySeparatorChar character has been removed. The function returns when path is .
See Also