wodSFTP API library - Attributes Callback
    
 

Description

Called when wodSFTP retrieves file or directory attributes.


Syntax

void (*Attributes)(void *Sftp, __int64 Size, long Uid, long Gid, long Permissions, DATE AccessTime, DATE ModificationTime);

The Attributes callback syntax has these parts:

Part Description
void *Sftp Handle of the created Sftp instance.
__int64 Size Size of the file/directory.
long Uid User ownership for the file/directory.
long Gid Group ownership for the file/directory.
long Permissions Information about user/group rights.
DATE AccessTime Determines the last access time for the file/directory.
DATE ModificationTime Determines the last modification time for the file/directory.

Remarks

This callback is called 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 callback.

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

If you are unfamiliar with representing dates with double type, you can convert AccessTime and ModificationTime to SYSTEMTIME structure using VariantTimeToSystemTime API.

NOTE: this callback is called only if you have created an instance of the SftpEventsStruct structure, and set its Attributes member to the function implementing it.