RemotePath.GetFileName Method
Returns the file name and extension of the specified remote/*nix path string.
Advertisement
Syntax
C#
public static string GetFileName(string path)
VB.NET
Public Shared Function GetFileName(path As String) As String
Parameters
Name | Description |
---|---|
string path | Path to retrieve file name and extension from. |
Return Value
The characters after the last slash (/
) in path
. If the last character of path
is a slash, this method returns String.Empty
. If path is null
, this method returns null
.
Remarks
The method is an equivalent of the standard Path.GetFileName
method for remote/*nix paths.