The FtpPut method sends a single file to the FTP server. If the file exists on the server it is not replaced and a new name is assigned to the file sent from the client.
Syntax:
>>-- myftpobj~FtpPutUnique(localfilename, remotefilename--+----------+--)-->< +--, mode--+
Arguments:
The filename and optional path where the source file is stored.
The filename and optional path used to store the file on the FTP server. If the filename exists then a new filename is used. If the path is not given the file will be stored in the current directory on the ftp server.
The file transfer mode, either 'ASCII' or 'BINARY'. If the argument is not given the current mode will be used.
Return Values:
A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:
The internal FTP command or the arguments to the method are in error.