RemotePath.GetFileName Method

Returns the file name and extension of the specified remote/*nix path string.

This feature is available only in the latest beta release.


public static string GetFileName(string path)
Public Shared Function GetFileName(path As String) As String


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.


The method is an equivalent of the standard Path.GetFileName method for remote/*nix paths.

Last modified: by martin