Click or drag to resize

PathAddTrailingDirectorySeparator Method (String, Boolean)

[AlphaFS] Adds a trailing DirectorySeparatorChar or AltDirectorySeparatorChar character to the string, when absent.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static string AddTrailingDirectorySeparator(
	string path,
	bool addAlternateSeparator
)

Parameters

path
Type: SystemString
A text string to which the trailing DirectorySeparatorChar or AltDirectorySeparatorChar is to be added, when absent.
addAlternateSeparator
Type: SystemBoolean
If the AltDirectorySeparatorChar character will be added instead.

Return Value

Type: String
A text string with a trailing DirectorySeparatorChar or AltDirectorySeparatorChar character. The function returns when path is .
See Also