Catalyst File Transfer .NET

FileTransfer.GetNextFile Method (FileInformation)

Get information about the next file in a directory listing returned by the server.

[Visual Basic]
Overloads Public Function GetNextFile( _
   ByRef fileInfo As FileInformation _
) As Boolean
[C#]
public bool GetNextFile(
   ref FileInformation fileInfo
);

Parameters

fileInfo
A FileInformation structure that is passed by reference. When the method returns, the members of this structure will be populated with information about the file on the server.

Return Value

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.

Remarks

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.

See Also

FileTransfer Class | SocketTools Namespace | FileTransfer.GetNextFile Overload List