Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to delete file from FTP server

Java: How to delete file from FTP server

import org.apache.commons.net.ftp.FTPClient;
import java.io.IOException;
public class FTPDelete
  public static void main(String[] args)throws Exception
    FTPClient client_FTP = new FTPClient();
    boolean etat= client_FTP.login("admin", "******");
    // delete the file 'index.php'
    boolean result = client_FTP.deleteFile("index.php");
    if (result)
      System.out.println("The file has been deleted");
     System.out.println("Icannot delete this file");

Users who found this page were searching for:

  • python getfile *.txt
  • a program in java to display a dictionary using sockets and threads
  • import smtplib import zipfile import tempfile
  • delete file from server in java
  • network programming ftp client java ftp server java
  • python with iterare binary
  • program for ftp which create, transfer and delete file in java
  • java socket programming ftp server with gui

No comments yet.

Leave a Comment