PowerTCP SSH and SFTP for .NET
GetFileName Method




The Unix path string from which to obtain the file name and extension.
Returns the file name and extension of the specified Unix path string.
Syntax
'Declaration
 
Public Shared Function GetFileName( _
   ByVal unixPath As String _
) As String
'Usage
 
Dim unixPath As String
Dim value As String
 
value = UnixPath.GetFileName(unixPath)
public static string GetFileName( 
   string unixPath
)
public: static string* GetFileName( 
   string* unixPath
) 
public:
static String^ GetFileName( 
   String^ unixPath
) 

Parameters

unixPath
The Unix path string from which to obtain the file name and extension.

Return Value

The characters after the last directory character in unixPath. If the last character of unixPath is a directory separator character, this method returns String.Empty. If unixPath is null, returns null.
Exceptions
ExceptionDescription
System.ArgumentExceptionunixPath contains a Unix filesystem-illegal character, NUL.
See Also

Reference

UnixPath Class
UnixPath Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic