Back to product page

AttributesData method


Called when wodSFTP retrieves directory attributes.

Type

None

Syntax

  • Basic
object.AttributesData Owner, Items
The AttributesData(object,Owner,Items) syntax has these parts:
objectAn expression evaluating to an object of type IwodSFTPNotify.
OwnerA wodSFTPCom object.
ItemsA SftpItems object. Reference to a collection of directory items.

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 AttributesData notification method will be called as a result of the ListAttributes method. Its purpose is to provide information about directory structure that can easily be parsed by your application. Instead of using ListDir, which returns line-by-line directory contents that depend on the server, you can use the ListAttributes method to retrieve a collection of objects - each of them containing one directory item.

This notification may be called more than once when the directory contains many items. When the complete directory listing is finished, the Done notification will be called.

Code sample

  • Basic

Platforms

Windows