PowerTCP FTP 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
Public Shared Function GetFileName( _
   ByVal unixPath As String _
) As String
Dim unixPath As String
Dim value As String
 
value = UnixPath.GetFileName(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 FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic