Back to product page

ListItems method


Called when the server returns information about a file or directory.

Type

None

Syntax

  • Basic
object.ListItems Owner, FileInfo
The ListItems(object,Owner,FileInfo) syntax has these parts:
objectAn expression evaluating to an object of type IwodSFTPNotify.
OwnerA wodSFTPCom object.
FileInfoA String value. Holds the server's results for your request.

Remarks

This method is only called if you implemented the IwodSFTPNotify interface in your application and the wodSFTP.Notification property has received a reference to an instance of your implementation.

The ListItems notification method will be called as a result of the ListDir, ListNames, RealPath, and GetAttributes methods. The FileInfo argument will contain:

1. For ListDir and ListNames there will be a complete description of all files in the requested directory, as seen on UNIX systems. Each file will be on a separate line, using CRLF sequence as a separator

2. For RealPath the argument will contain the full path to a file/directory pointed to by the requested symbolic link.

3. For GetAttributes the argument will contain a text description of the requested file/directory attributes.

Calling ListDir and ListNames can cause this notification method to be called more than once before the Done notification signals method completion. This will happen if the remote directory contains many files.

Platforms

Windows