Syncplify.me FTP Script! version: 3.1.0+
FTP Script! v3.1.0.50, released earlier today, comes with a bunch of new features and functions to simplify some tasks related to the management of local files. In fact, it’s not just about transferring files to/from FTP servers… what you do with those files after/before you upload/download them to your local disk also matters!
In earlier versions of FTP Script! the FileCopy function, for example, was very limited. It could copy only one file at a time, and it had no support for wildcard file masks. In v3.1 we greatly improved it, and you can now use it this way:
1 2 3 4 5 6 |
begin if FileCopy('C:\Data\*.xml', 'C:\Destination\', true) then Log('Files successfully copied') else Log('Files were NOT correctly copied'); end. |
The third parameter (set to true in the example here above) determines whether the function should overwrite the destination file(s) if it/they already exist.