BeforePut Property
A set of FTP commands to be executed before the files are uploaded to the server.
Data Type
StringDefault Value
""Remarks
BeforePut is a script that is executed immediately before each successful FTP PUT operation.
In the Send adapter, this is executed before outgoing AS3 files are uploaded.
In the Receive adapter, this is executed before outgoing MDN files are uploaded.
The script may contain any number of standard FTP commands.
Each line in the script is treated as a single command. By default, if the adapter encounters any errors while executing a command, it will log the error message and will continue to process the script. This behavior can be turned off by inserting "ONERROR FAIL" at any point in the script, which will cause the script to terminate on error but will not interrupt the normal operation of the adapter. The default behavior can be restored at any point in the script by inserting the line "ONERROR RESUME".
Valid additional scripting commands are listed below:
cd Path | Change the remote directory to the specified path. |
del Filename | Delete the specified file from the remote server. |
mkdir Directory | Create the specified remote directory on the server. |
rn Filename NewFilename | Rename the remote file specified by Filename to the NewFilename. |
move Filename NewFilename | Move the remote file located at Filename to the NewFilename. |
rm Filename | Remove the specified file from the remote server. |
rmdir Directory | Remove the remote directory from the server. |