Package DE_EPAGES::Core::API::FTP
Wrapper over WWW::Curl::Easy
Functions
connect
Connect to a FTP server
Syntax |
$ftp->connect($Url,$username,$password); |
Input |
|
connectionDataOK
Check if connection data is setup OK
Syntax |
$ftp->connectionDataOK; |
Return |
|
getFile
Get a file from a FTP url once the connection is created
Syntax |
$ftp->getFile($LocalFileName,$RemoteFileName); |
Input |
|
listFiles
List the files,links,directories,... that exist in $Directory of FTP server
Syntax |
@aReturnFiles = $ftp->listFiles($Directory); |
Input |
|
Return |
|
message
Returns the description of the return code.
Syntax |
$ftp->message($RetCode); |
Input |
|
Return |
|
new
Creates an empty DE_EPAGES::Core::API::FTP object
Syntax |
$ftp->new(); |
Return |
|
putFile
Send a file to a FTP url once the connection is created
Syntax |
$ftp->putFile($LocalFileName,$RemoteFileName); |
Input |
|
renameFile
Rename a file of the FTP server
Syntax |
$ftp->renameFile($OldFileName,$NewFileName); |
Input |
|