What’s next in Syncplify.me FTP Script!?

While our beta testers are hunting for bugs in Syncplify.me FTP Script! v3.0-BETA1, here’s a cool feature that will be introduced in BETA2 next week.

Let’s look at a typical script that uploads a bunch of PDF files and then downloads a bunch of XLSX files from the same server:

 As our v3-beta1 testers know very well, the above script will cause the following execution flow:

  • Connect to the server with the control connection
    • Connect to the server with the data connection
    • Upload *.PDF to the server
    • Disconnect the data connection
    • Reconnect the data connection
    • Download *.XLSX from the server
    • Disconnect the data connection
  • Disconnect the control connection (disconnects completely from the server)

The above can be very efficient when “moving” files, as the Download function that follows the Upload will have to reconnect the data connection, and the cleanup will happen before then.

But (and here’s the new feature to be found in v3-beta2) in many other cases, when you can predict the outcome of the cleanup or when there’s no cleanup at all to be done, for performance reasons you may want to connect/disconnect the data connection only once!

Therefore Syncplify.me FTP Script! v3.0-BETA2 will allow you to write a script like this:

As you can see, the Upload and Download functions (synchronous) have now been substituted by the PrepareUpload and PrepareDownload functions (asynchronous). The Prepare* functions only add files to the transfer list, but do not initiate the actual transfer. Once the list contains all the files you want to upload and/or download, you can call the DoTransfer function to execute the actual file transfer in a single data connection (per thread). The execution flow will then be:

  • Connect to the server with the control connection
    • Connect to the server with the data connection
    • Upload *.PDF to the server
    • Download *.XLSX from the server
    • Disconnect the data connection
  • Disconnect the control connection (disconnects completely from the server)

Much faster in comparison to many Upload/Download commands.

 

Print Friendly
Bookmark the permalink.

One Comment

  1. Pingback: Syncplify.me FTP Script! v3.0-BETA2 is available! - Syncplify.me

Comments are closed