FilePathGetLastDirectoryName Method

Gets the last directory name from a file path.

Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public static string GetLastDirectoryName(
	string filePath
)

Parameters

filePath  String
The file path from where the last directory name is to be retrieved.

Return Value

String
The last directory name from a file path.

Remarks

GetLastDirectoryName(String) would return sub2 from c:\windows\sub2\filename.ext.

See Also