Delete a File into the FTP using JavaScript Transformer

lundi 27 octobre 2014

Hello,



I'm trying to delete a file from an FTP through a code template and I am using the following:



ftpConn = new Packages.com.mirth.connect.connectors.file.filesys tems.FtpConnection(ftpserver, ftpport, ftpuser, ftppass, ftppassive, ftptimeout);

if ( ftpConn == null || ! ftpConn.isConnected() ) {

connected = false;

logger.info("no conectado");

} else {

connected = true;

logger.info("conectado");

}

if (connected) {ftpConn.Delete ( ftpfile , ftppath , true);

}





But the file is not deleted, any idea?



Thanks.





Delete a File into the FTP using JavaScript Transformer

0 commentaires:

Enregistrer un commentaire