The directory is in fact empty according to FTP, how can I delete this directory even though SmartFTP is throwing this error?

link|improve this question

75% accept rate
feedback

migrated from stackoverflow.com Jan 5 '10 at 20:28

This question came from our site for professional and enthusiast programmers.

5 Answers

up vote 1 down vote accepted

Set full permissions on folder first, then try deleting it again:

CHMOD 777 <folder>

Also check it does not contain files with names that begin with ".", as these may appear hidden. Eg,

DELETE .htaccess
link|improve this answer
feedback

Is someone else using that directory?

link|improve this answer
feedback

FTP isn't a reliable way to check to see if a directory is empty or not. Do you have local access to the machine?

link|improve this answer
feedback

Check first if you have a permission to rename it, if not then John is right that folder is not owned by you.

link|improve this answer
feedback

This is usually caused by hidden files.

In SmartFTP:

  1. Select Favorites > Edit Favorites from the SmartFTP menu. The SmartFTP Favorites window appears.
  2. From the SmartFTP Favorites window select the Favorite FTP login. Right click on the Favorite and select Properties. The Properties dialog appears.
  3. Under the FTP option select Transfer. From the Transfer tab under Directory Listing Options enable the options "[-a] Show All Files" & "[-L] Resolve Links".

You can then check the folder again for hidden files. If this does not turn up anything, contact your host, they will remove the folder for you.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.