wodSFTP ActiveX Control - AttributesData Method
      
 

Description

Called when wodSFTP retrieves directory attributes.


Return Type

None  


Syntax

object.AttributesData Owner, Items



The AttributesData Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodSFTPNotify.
Owner A 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.

You can easily get information about specific item. For example, if it is a directory:

For Each item In Items
  a = item.Name
  ' is it a directory? let's add / at the end of it
  If item.Permissions And 16384 Then a = a & "/"
  ...
Next


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.