Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2010
    Posts
    29
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Java FTP Delete?

    I've managed to create an FTP client that uploads and downloads files from a server. What I can't figure out is how to do an FTP delete. Can anyone help me on that? I don't want to use an API or someone else's class. (How would I learn from that?

    I've tried looking through some existing API's for hints, but their too complicated for me to figure out. You have to go from function to function in tons of files and I still don't get it.

    Any help or suggestions would be great! Thanks everyone.
    PHP - MySQL - JavaScript - AJAX - HTML/XHTML/XML - CSS - Java - C++

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Unfortunately it won't get a whole lot easier either. Custom packages are made to simplify a task for other people. I can appreciate wanting to build yourself though.
    The first place to start when dealing with protocols is to go to the rfc defining the protocol and how communication works with it. FTP rfc is http://www.ietf.org/rfc/rfc959.txt. If you have a socket set up already and can move files, then chances are you are where you need to be. The command to send to a server to delete a file is DELE.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •