Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Linux forum

General discussion

ftp directory and contents

by perfectrecords / April 9, 2007 11:39 PM PDT

Hi there

I am using ftp on debian to access the content of an ftp site. At the moment I can upload and download files but don't seem to be able to do the same with directory's. Any ideas?

Joe

Discussion is locked
You are posting a reply to: ftp directory and contents
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: ftp directory and contents
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
That depend on 'the ftp client' and...
by R. Proffitt Forum moderator / April 9, 2007 11:49 PM PDT

If it has such a feature. If you were to read a few pages about FTP you see your answer but you may want to skip to a solution. Try other FTP clients.

Bob

Collapse -
ftp packs
by perfectrecords / April 9, 2007 11:58 PM PDT

any suggestions on a few good ftp packages that can be operated in bash?

Collapse -
For me the solution was to add more commands.
by R. Proffitt Forum moderator / April 10, 2007 12:05 AM PDT
In reply to: ftp packs
Collapse -
use wget(1) or curl(1) instead
by clsgis / April 12, 2007 7:53 AM PDT

Are you really trying to get just one directory? Or are you really looking for a directory and all its contents recursively?

If it's the latter, take a look at GNU wget. You probably already have it. Here I am getting everything in directory /bar/baz except directory /bar/baz/junk from host foo.example.net.

wget -r -w 1 -np -H -o ftp-log -nv -X /bar/baz/junk -l 6 \
--ftp-user=me --ftp-password=seekrit ftp://foo.example.net/bar/baz

Read the manpage. It's worth it.

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!