local | Local file size is the larger. |
remote | Remote file size is the larger. |
same | File sizes are the same. |
FtpHandle | Handle for FTP connection. |
TargetName | Name of file. Must be the same both local and remote. |
Note that it is possible to transfer a file from one machine to another and wind up with a different size. This depends on your settings (e.g. ASCII transfer over binary). So, it could make it such that you keep transferring files because they are different size.
Currently, there no option to adjust for this (perhaps in a future version). It is recommended you change your settings (see GenNS::Ftp::FileTransferType
) or use ftp::FileSize
yourself, directly.
% FtpWhichIsLarger $MyFtpHandle myfile.txt
same
% AppendString2File asdf myfile.txt
% FtpWhichIsLarger $MyFtpHandle myfile.txt
local