Click or drag to resize
PathEnsureSlashes Method
Ensures that path contains DirectorySeparatorChar.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 13.0.131
Syntax
C#
public static string EnsureSlashes(
	string path,
	bool trimEnd = false
)

Parameters

path
Type: SystemString
Path to convert.
trimEnd (Optional)
Type: SystemBoolean
If true, the end of path is trimmed for DirectorySeparatorChar.

Return Value

Type: String
See Also