Back to product page

Attributes method


Called when wodSFTP retrieves file or directory attributes.

Type

None

Syntax

  • Basic
object.Attributes Owner, Size, Uid, Gid, Permissions, AccessTime, ModificationTime
The Attributes(object,Owner,Size,Uid,Gid,Permissions,AccessTime,ModificationTime) syntax has these parts:
objectAn expression evaluating to an object of type IwodSFTPNotify.
OwnerA wodSFTPCom object.
SizeA Long value. Size of the 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 the file/directory.
ModificationTimeA Date value. Determines last modification time for the file/directory.

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.

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

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

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

Code sample

  • Basic

Platforms

Windows