Example usage for org.apache.commons.net.ftp FTPClient deleteFile

List of usage examples for org.apache.commons.net.ftp FTPClient deleteFile

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp FTPClient deleteFile.

Prototype

public boolean deleteFile(String pathname) throws IOException 

Source Link

Document

Deletes a file on the FTP server.

Usage

From source file:simplehttpdb.net.FTPHelper.java

private void releaseLock(FTPClient ftpClient, String rootDir) {
    try {/*ww  w . j a v  a  2 s .  c  om*/
        ftpClient.deleteFile(rootDir + Definitions.LOCK_FILE);
    } catch (IOException ex) {
        Logger.getLogger(FTPHelper.class.getName()).log(Level.SEVERE, null, ex);
    }
}