Gets the folder-path without the file-name. If there are no separators in the path, return the path as is

Namespace: EnterpriseDT.Util
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0

Syntax

C#
public static string GetFolderPath(
	char separator,
	string path
)
Visual Basic
Public Shared Function GetFolderPath ( _
	separator As Char, _
	path As String _
) As String
Visual C++
public:
static String^ GetFolderPath(
	wchar_t separator, 
	String^ path
)

Parameters

separator
Type: System..::..Char
path
Type: System..::..String
Absolute or relative path

Return Value

Folder path

See Also