ftp program using socket
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Kareem
Posted On:   Wednesday, May 28, 2003 09:38 PM

can anybody help me to bulid the ftp program in java through socket
which can send the files and subdirectories in directory.



i tried but the only one file is copying to destination, its unable to copy mutiple copy and subdirectory in
directory.




ok bye
kareem
kareem2020@yahoo.com

Re: ftp program using socket

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, May 29, 2003 07:56 AM

I think (?) most ftp servers and clients can send and receive multiple files in a single directory via wildcards, but cannot recursively send or receive files in subdirectories, not unless you explicitly name each one? and I think (?) you might have to manually make the subdir first, on the target machine? e.g. I don't think (?) the ftp protocol covers automatically fetching and creating a whole directory in one step; I think (?) you have to first create the directory, and then fetch the files in it.


Some nicer servers (e.g. wu-ftpd) provide extended features, like automatically tar and gzip on the fly, e.g. if you GET a name like "subdir.tar.gz", it will run through "subdir" and make the gzipped tarball on the fly, for you (without having to store the tarball).

About | Sitemap | Contact