Back to product page

Attributes event


Fires when wodSFTP retrieves file or directory attributes.

Syntax

  • Basic
Private Sub object_Attributes(Size, Uid, Gid, Permissions, AccessTime, ModificationTime)
The Attributes(object,Size,Uid,Gid,Permissions,AccessTime,ModificationTime) syntax has these parts:
objectA wodSFTP object.
SizeA Long value. Size of file/directory.
UidA Long value. User ownership for the file/directory.
GidA Long value. Group ownership for the file/directory.
PermissionsA Long value. Information about user/group rights.
AccessTimeA Date value. Determines last access time for file/directory.
ModificationTimeA Date value. Determines last modification time for file/directory.

Remarks

This event is fired as a result of the GetAttributes method. Once the server returns information about the requested file/directory, it will be parsed by wodSFTP and provided using this event.

Permissions are defined by the POSIX standard. For a brief description, please refer to the GetAttributes help page.

In case you are retrieving information for files larger than 4.2GB, where the remote file size cannot be presented using a long value, the Attributes64 event will be fired instead of Attributes (the component will never fire both of them). This is only done for compatibility with previous versions of our component. If you still want to use just one event, you should create code that just wraps the new event from the old one (sample code for VB):

Code sample

  • Basic

Platforms

Windows