A new version of our FTP Script! software has been released today. It adds an optional parameter to all Upload and Download methods to specify what action should be taken after the file transfer.
The new property defaults to ofaNone, which means that no action will be taken: the file will simply be uploaded/downloaded and nothing else. But if you set the property to ofaDelete, then FTP Script! will automatically:
- delete any local file after uploading it
- delete any remote file after downloading it
Thanks to this new property you can write scripts like this:
Cli := TSFTPClient.Create;
Cli.ServerAddr := '127.0.0.1';
Cli.Username := 'test';
Cli.Password := 'test';
if Cli.Open then
// upload all files from C:\Docs to /docs, then delete all original files from C:\Docs
Cli.Upload('C:\Docs\*', '/docs/', true, feaOverwrite, ofaDelete);
As usual you can download the new version from our web site. Thank you!