commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: raw commands with commons net FTP
Date Tue, 21 Jun 2005 20:40:03 GMT

In message <OF2DD5E3FC.97F6DF60-ONCA257026.000B8E95@qantas.com.au>, cjacobson@q
antas.com.au writes:
>Is there a way of sending raw FTP commands using the FTPClient code?

You can do it wth FTP.sendCommand:

http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String)
http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String,%20java.lang.String)

Site specific extensions may require the use of the SITE command.

FTP.site:

http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String)

>I want to send the 'prompt' command to disable prompting and then send a
>multiple delete type command, eg mdelete *.*

Prompting for confirmation is typically a client action and not performed
by the server.  The same holds true for mdelete.  It is usually the
client that performs glob expression expansion on a full file listing.

daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message