in reply to Re^2: Net:FTP Not overwrite files
in thread Net:FTP Not overwrite files

Hi i developed a very simples way to accomplish that it is so simple and work with the old Net::FTP
$ftp->put("$file") unless $ftp->rename("$file","$file");
well gonna put file only if it doens't exits otherwise it will rename it with the same actual name! it is genious regards Claudio

Replies are listed 'Best First'.
Re: Net:FTP Not overwrite files
by Sol (Initiate) on Nov 05, 2014 at 14:32 UTC
    that's a good idea, but mdtm() or size() can be better. because rename() changes its property. mdtm() and size() changes nothing.