wodSFTP ActiveX Control - AttributesData Event
    
 

Description

Fires when wodSFTP retrieves directory attributes.


Syntax

Private Sub object_AttributesData(Items)



The AttributesData Event syntax has these parts:

Part Description
object A wodSFTP object.
Items A SftpItems object. Reference to collection of directory items.

Remarks

The AttributesData event will be fired as a result of the ListAttributes method. Its purpose is to provide information about a 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.

Typically you can easily get information about a 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 event can fire more than once when a directory contains many items. When a complete directory listing is finished, the Done event will fire.