Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2012, 12:20 AM   PM User | #1
jmace
New Coder

 
Join Date: Oct 2010
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
jmace is an unknown quantity at this point
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++
jmace is offline   Reply With Quote
Old 01-24-2012, 01:42 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:18 AM.


Advertisement
Log in to turn off these ads.