|
FilePathGetLastDirectoryName Method
|
Gets the last directory name from a file path.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntaxpublic static string GetLastDirectoryName(
string filePath
)
Public Shared Function GetLastDirectoryName (
filePath As String
) As String
public:
static String^ GetLastDirectoryName(
String^ filePath
)
static member GetLastDirectoryName :
filePath : string -> string
GSF.IO.FilePath.GetLastDirectoryName = function(filePath);
View SourceParameters
- filePath String
- The file path from where the last directory name is to be retrieved.
Return Value
StringThe last directory name from a file path.
RemarksGetLastDirectoryName(String) would return sub2 from c:\windows\sub2\filename.ext.
See Also