Get the first file name in a directory listing returned by the server.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
A file listing is initiated by calling the OpenDirectory method. Then, the application must call GetFirstFile, followed by calling GetNextFile in a loop until the method returns false. Once the complete directory listing has been returned, the CloseDirectory method must be called.
This file list information returned by the server is cached by the class library, allowing you to use this method to reposition back to the beginning of the file list.
FileTransfer Class | SocketTools Namespace | FileTransfer.GetFirstFile Overload List