Forums | MacLife
Wide is the new black
You are not logged in.
#1 2008-05-16 6:47 pm
- salang9
- Member

- Registered: 2008-01-04
- Posts: 53
I need some help with FTP
When im working with my website i like to use the FTP in the terminal to help me transfer and manage files, my only problem would be when I try to remove a directory with contents in it on the remote server: The terminal wont let me use the "rmdir", "delete", or "rm -rf" commands to delete the directory. Can anyone tell me how to delete a directory and all its files in the Terminal FTP?
Thanks a lot (sorry if i posted this in the wrong section),
Jake
Offline
#2 2008-05-16 9:08 pm
- slimeyapple
- Member

- From: CA
- Registered: 2004-08-07
- Posts: 83
- Website
Re: I need some help with FTP
Does the directory have sub-directories?
Did you try:
Code:
rm /some/dir -r
(requires shell access, I think)
"...and when the doctor said I didn't have worms anymore, that was the happiest day of my life..."
Offline
#3 2008-05-17 6:38 pm
- salang9
- Member

- Registered: 2008-01-04
- Posts: 53
Re: I need some help with FTP
slimeyapple wrote:
Does the directory have sub-directories?
Did you try:Code:
rm /some/dir -r(requires shell access, I think)
My directory has sub-directorys, does that mean i have to delete the sub directorys first?
btw when i tried rm /my directory -r i got the same error message:
usage rmdir dirctory-name
also im haveing a similar problem uploading directorys.... any help?
thanks again!
-Jake
Offline
#4 2008-05-19 11:22 am
- sturner
- Royal High Poobah

- From: Carrollton, TX USA
- Registered: 2000-01-31
- Posts: 9061
Re: I need some help with FTP
Or you could use a 3rd party FTP program like Transmit from Panic software to manage your FTP site.
"There were places in the world commemorating those times when wizards hadn't been quite as clever [as to refrain from doing magic when you knew how easy it was], and on many of them the grass would never grow again." Terry Prachett
There are 3 types of people, those who can count and those who can't.
Offline
#5 2008-05-19 11:34 am
Offline
#6 2008-05-19 11:36 am
- sturner
- Royal High Poobah

- From: Carrollton, TX USA
- Registered: 2000-01-31
- Posts: 9061
Re: I need some help with FTP
matt wrote:
Transmit is much easier than command-line FTP.
No kidding! Drag and drop usually is.
"There were places in the world commemorating those times when wizards hadn't been quite as clever [as to refrain from doing magic when you knew how easy it was], and on many of them the grass would never grow again." Terry Prachett
There are 3 types of people, those who can count and those who can't.
Offline
#7 2008-05-19 8:46 pm
- salang9
- Member

- Registered: 2008-01-04
- Posts: 53
Re: I need some help with FTP
I actually just checked out cyberduck. The drag and drop interface is much more simple than the command line.
Thanks a lot for your help guys!
-Jake
Offline


