Back to product page

GetSize method


Retrieves file or folder size.

Type

A Long value. Holds the size date of remote file, if used in blocking mode.

Syntax

  • Basic
object.GetSize[RemotePath]
The GetSize(object,RemotePath) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
RemotePathOptional. A Variant value. Full path to a directory on the server.

Remarks

The GetSize method will retrieve information about a file or directory on the remote server, and will return its size. Result of the command will be provided in Attributes event which will be fired afterwards.

If Blocking property is set to True, GetSize will return lower 32 bits of the size (which is usually what you need) immediately so you can use it in scripting environment where events are not available.

Platforms

Windows