uncadonego on 30/9/2010 at 18:15
I moved my stamp pictures to photobucket and out of my IP space, and changed the links accordingly on a stamp board. The files within the directory deleted fine. However, when I click the folder and choose Delete, it won't go away. The bottom corner of FTP Commander describes the operation thusly:
Error 200 CDUP successful. "/cgi-bin/stamps" is current directory.
It's probably a simple thing I'm not doing, but I'd like to get rid of the folder, and the empty folder within as well.
??
thanks
ZylonBane on 30/9/2010 at 18:26
Quote Posted by uncadonego
It's probably a simple thing I'm not doing, but I'd like to get rid of the folder,
and the empty folder within as well. DING DING DING DING DING!
Al_B on 30/9/2010 at 20:01
As Zylonbane suggests, it's probably because the FTP protocol itself doesn't allow a recursive delete of directories (i.e. it will only allow removal of an empty directory). Deleting the contents of the directory first will allow you to remove the top level directory.
However, some client programs will manage this process for you. (
http://filezilla-project.org/) FileZilla, for example, will navigate through sub-directories and delete before removing the top level directory.
uncadonego on 1/10/2010 at 02:35
actually I did think to try deleting the inside directory once I tried it the other way.
The message is the same
DJ Riff on 1/10/2010 at 06:33
If the connection is not encrypted, use FTP.EXE. At least you will see the proper error code, there should a "5" in it, 200 is a successful operation code.
The typical set of commands in ftp.exe should be:
open server.com
user username
pass password
cd cgi-bin
pwd
dir
just to be sure you're in the right directory
rmdir stamps
Mortal Monkey on 1/10/2010 at 20:22
Quote Posted by uncadonego
Error 200 CDUP successful. "/cgi-bin/stamps" is current directory.
You could screenshot that and submit it to (
http://thedailywtf.com/) The Daily WTF. So I guess your FTP submitted a CDUP command, expecting it to delete the directory, which is why it flagged it as an error when it succeeded? But why are you still in "/stamps" if CDUP succeeded?
Kolya on 10/10/2010 at 19:42
You're probably not the owner of the folder inside stamps. Happens when folders get created by PHP scripts and the user PHP runs under becomes the owner. Hence you cannot delete it.
Check your host's cpanel or whatever they use as a customer backend, set the folder to be owned by you and delete it via FTP.