Help with server

They have: 1 posts

Joined: Feb 2005

Well in my year of being a webmaster i have encountered more then once the problems with some folders, i am not sure what i do but it happens often after CHMODing and after that i cant delet that folder... Well i am using Cute FTP Pro 6.0 my firend told me to search for the option like allow deleting of empty folders or something like that but there isnt anything like that.. How can i delete the folders

Busy's picture

He has: 6,151 posts

Joined: May 2001

first make sure the folder is empty, think it's -la you type in there somewhere (sorry been a while since I used cuteftp) as you may have a hidden file in there, .htaccess etc

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Because many FTP programs won't delete a folder if anything is in there, I eventually switched over to SmartFTP. It will delete everything in the directory for you. I'm sure many FTP programs will do that now, but that's the one I personally use.

http://www.smartftp.com/

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

It's more of a unix thing than a FTP one. The ftp command used to delete a directory is rmdir. rmdir doesn't work if the directory contains any files, even . files. To delete a non-empty folder in unix, you need to use the rm command with the -R option (recursive). A couple of options if your ftp program doesn't allow this. One if you have SSH access, go in a do a rm -R foldername. Another option is to move the folder to your hard drive and delete it there. Still another option is to go into the folder and delete the files, then delete the folder.

You can also change programs as suggested. WinSCP also allows deletion of non-empty folders.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

He has: 57 posts

Joined: Apr 2005

I have had the same problem. You just need to log in to the server via ssh or telnet and do an "rm -r foldername". However, I normally recieve an error when the directory is not empty. I use Seagull FTP.

He has: 183 posts

Joined: Nov 2003

The folder will have transfer the same permissions as what is on your computer. For example if there is a hidden folder it will copy that. But, when the folder is on the server you will not be able to view it. Which means, you can delete what you cant see...

He has: 270 posts

Joined: Jan 2005

Yeah I would give Smart FTP a shot it is by far the best FTP program I have ever used. If that does not work you might try contacting your host and see what they say!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.