FTP - can't delete directories

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew McPhee
    Junior Member
    • Mar 2004
    • 3

    #1

    FTP - can't delete directories

    I'm having a problem deleting directories via FTP, sometimes I can, other times I can't.

    For example, just now I uploaded a search script for my site. The script/s were in a directory with various sub-directories and files inside it. I simply grabbed the main directory and uploaded it, FTP took care of creating the sub-directories and moving the files into them.

    But then I decided the script wasn't for me so I deleted the main directory, expecting the whole lot to go away.

    But no, all the files have gone but the main and sub-directories are still there and whatever I do they won't die! They are all CHMOD 755, does anyone have an idea of what's going on?
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    They might have been "Owned" by someone else when you uploaded them.
    If you right click the directory and look at its properties. The owner should be set as your username/id.
    If it isn't, you'll need support to change the owner and then you can delete them

    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • halyfax
      Senior Member
      • Mar 2004
      • 124

      #3
      I notice sometimes if there is a .htaccess document in the directory it will not let me delete the directory unless I manually delete the .htaccess file.

      Comment

      • KyleC
        Senior Member
        • Mar 2004
        • 291

        #4
        sometimes when ownership gets messed up you can still delete the directorys using the file manager in cPanel
        -Kyle

        Comment

        • james
          Senior Member
          • Mar 2004
          • 183

          #5
          For some reason my FTP client hides .htaccess files.

          Thus, when I try to delete a whole directory, if there is a .htaccess file in it then it won't delete the directory.

          The best way I have found to reliably remove a directory is via the file manager feature in cPanel (just remember to empty the trash can too).

          James

          Comment

          • -Oz-
            Senior Member
            • Mar 2004
            • 545

            #6
            You can set the FTP client to show hidden files and then see .htaccess files and then you can succesfully delete directories.
            Dan Blomberg

            Comment

            Working...