Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
AttributesData method
Called when wodSFTP retrieves directory attributes.
Type
NoneSyntax
- Basic
object.AttributesData Owner, Items
The AttributesData(object,Owner,Items) syntax has these parts:
The AttributesData(object,Owner,Items) syntax has these parts:
object | An expression evaluating to an object of type IwodSFTPNotify. |
Owner | A wodSFTPCom object. |
Items | A 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
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
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