Click or drag to resize

PathRemoveTrailingDirectorySeparator Method (String)

[AlphaFS] Removes the trailing DirectorySeparatorChar 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
)

Parameters

path
Type: SystemString
A text string from which the trailing DirectorySeparatorChar is to be removed, when present.

Return Value

Type: String
A text string where the trailing DirectorySeparatorChar character has been removed. The function returns when path is .
See Also