Get File Size#

Determine the size of a file located on an FTP/SFTP server.

URL

[Text] The full path to the FTP file. It should start with a protocol, for example: "ftp://server.url/file.ext".

For SFTP, specify the protocol as "sftp".

Username[Text] The username for authentication on the FTP server.
Password[Text/SecureString] The password for authentication on the FTP server.
Private Key File[Text] The private key file for SFTP authentication. If necessary, specify the password in the "Password" property.
Units of MeasurementSelect the type of return value. Possible options: in bytes, kilobytes, gigabytes, terabytes.
Result[Number] The size of the file in the selected type.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.