NAME
FtpWhichIsLarger — Tell whether the local or remote file is larger or if same.
SYNOPSIS
FtpWhichIsLarger FtpHandle TargetName
DESCRIPTION
Return Value
local Local file size is the larger.
remote Remote file size is the larger.
same File sizes are the same.
Arguments
FtpHandleHandle for FTP connection.
TargetNameName of file. Must be the same both local and remote.
More Info
See About FTP Use for additional details.

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.


For information regarding exceptions / errors, see here.
EXAMPLES
% FtpWhichIsLarger $MyFtpHandle myfile.txt
same
% AppendString2File asdf myfile.txt
% FtpWhichIsLarger $MyFtpHandle myfile.txt
local
SEE ALSO
FtpWhichIsNewer
KEYWORDS
file, network