Click or drag to resize

FilePathGetLastDirectoryName Method

Gets the last directory name from a file path.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
public static string GetLastDirectoryName(
	string filePath
)
View Source

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