You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by Rajeev kamal <ra...@dimatas.com> on 2007/05/20 00:50:37 UTC
Directory and its contentDownload
Hello Dear Friends,
I want to implement a Directory and it content download using our FTP
Server and Apache FTPClient API. Do you think I can do it. It we can do
that I will appreciate a sample code. Otherwise please let me know what
I need to do to accomplish my goal.
Thanks
Rajeev
Re: Directory and its contentDownload
Posted by Niklas Gustavsson <ni...@protocol7.com>.
Rajeev kamal wrote:
> Thanks,
> I just wanted to confirm with you experts before working on that module
You're most welcome :-) Please get back if you have any additional
questions!
/niklas
Re: Directory and its contentDownload
Posted by Rajeev kamal <ra...@dimatas.com>.
Thanks,
I just wanted to confirm with you experts before working on that module
Niklas Gustavsson wrote:
> Rajeev kamal wrote:
> > Hello Niklas,
> > When I use FTPClient, I can download the specified file from Apache
> FTPServer. I want the users to have the ability to select multiple
> files and directories and then download them. Basically I want the
> user to specify the directory and then I want the user to be able to
> download the directory and it contents. The contents can be further
> layers of directories or files. Hope I am able to explain you.
>
>
> As far as I know, there is no way in the FTP protocol to do this
> directly. Therefore, you will find that FTP clients do a LIST to find
> all files and then a RETR for each file to retrieve it. You will have
> to do the same in your client. There is no way for us to support
> anything else on the server side of things.
>
> Hope that helps!
>
> /niklas
>
>
Re: Directory and its contentDownload
Posted by Niklas Gustavsson <ni...@protocol7.com>.
Rajeev kamal wrote:
> Hello Niklas,
> When I use FTPClient, I can download the specified file from Apache
FTPServer. I want the users to have the ability to select multiple files
and directories and then download them. Basically I want the user to
specify the directory and then I want the user to be able to download
the directory and it contents. The contents can be further layers of
directories or files. Hope I am able to explain you.
As far as I know, there is no way in the FTP protocol to do this
directly. Therefore, you will find that FTP clients do a LIST to find
all files and then a RETR for each file to retrieve it. You will have to
do the same in your client. There is no way for us to support anything
else on the server side of things.
Hope that helps!
/niklas
Re: Directory and its contentDownload
Posted by Rajeev kamal <ra...@dimatas.com>.
Hello Niklas,
When I use FTPClient, I can download the specified file from Apache
FTPServer. I want the users to have the ability to select multiple files
and directories and then download them. Basically I want the user to
specify the directory and then I want the user to be able to download
the directory and it contents. The contents can be further layers of
directories or files. Hope I am able to explain you.
Thanks,
Rajeev
Niklas Gustavsson wrote:
> Rajeev kamal wrote:
>> Sorry for the late reply. I was talking about Apache FtpServer.
>
> Could you please describe in more detail what you want FtpServer to
> do? I'm not sure I completely understand your question.
>
> /niklas
>
>
>
>> Niklas Gustavsson wrote:
>>> Hi Rajeev
>>>
>>> Rajeev kamal wrote:
>>>> Hello Dear Friends,
>>>> I want to implement a Directory and it content download using our
>>>> FTP Server and Apache FTPClient API. Do you think I can do it. It
>>>> we can do that I will appreciate a sample code. Otherwise please
>>>> let me know what I need to do to accomplish my goal.
>>>
>>> When you say "our FTP Server" do you than mean Apache FtpServer. If
>>> not, you should probably ask this question over at
>>> commons-user@jakarta.apache.org which covers the use of Commons Net
>>> FTP client.
>
>
>
Re: Directory and its contentDownload
Posted by Niklas Gustavsson <ni...@protocol7.com>.
Rajeev kamal wrote:
> Sorry for the late reply. I was talking about Apache FtpServer.
Could you please describe in more detail what you want FtpServer to do?
I'm not sure I completely understand your question.
/niklas
> Niklas Gustavsson wrote:
>> Hi Rajeev
>>
>> Rajeev kamal wrote:
>>> Hello Dear Friends,
>>> I want to implement a Directory and it content download using our FTP
>>> Server and Apache FTPClient API. Do you think I can do it. It we can
>>> do that I will appreciate a sample code. Otherwise please let me know
>>> what I need to do to accomplish my goal.
>>
>> When you say "our FTP Server" do you than mean Apache FtpServer. If
>> not, you should probably ask this question over at
>> commons-user@jakarta.apache.org which
>> covers the use of Commons Net FTP client.
Re: Directory and its contentDownload
Posted by Rajeev kamal <ra...@dimatas.com>.
Sorry for the late reply. I was talking about Apache FtpServer.
Niklas Gustavsson wrote:
> Hi Rajeev
>
> Rajeev kamal wrote:
>> Hello Dear Friends,
>> I want to implement a Directory and it content download using our FTP
>> Server and Apache FTPClient API. Do you think I can do it. It we can
>> do that I will appreciate a sample code. Otherwise please let me know
>> what I need to do to accomplish my goal.
>
> When you say "our FTP Server" do you than mean Apache FtpServer. If
> not, you should probably ask this question over at
> commons-user@jakarta.apache.org which covers the use of Commons Net
> FTP client.
>
> /niklas
>
>
Re: Directory and its contentDownload
Posted by Niklas Gustavsson <ni...@protocol7.com>.
Hi Rajeev
Rajeev kamal wrote:
> Hello Dear Friends,
> I want to implement a Directory and it content download using our FTP
> Server and Apache FTPClient API. Do you think I can do it. It we can do
> that I will appreciate a sample code. Otherwise please let me know what
> I need to do to accomplish my goal.
When you say "our FTP Server" do you than mean Apache FtpServer. If not,
you should probably ask this question over at
commons-user@jakarta.apache.org which covers the use of Commons Net FTP
client.
/niklas