Your best friend for file transfer.

Fetch application logoFetch

Cannot delete directories (3 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 11 years ago by biscuit_tech
  • Latest reply 11 years ago from Jim Matthews
  • biscuit_tech Member

    I've had this problem for a while, but never thought i should report it until now:
    using fetch and a unix server I cannot delete nested folders successfully. Fetch will go down into the folder hierarchy and delete files but at the end it will complain that it cannot delete directory because it is not empty.

    the directory is empty and while fetch will never be able to delete the directory again, I can through the command line. (haven't tried other ftp programs.) It could be that fetch sees a .DS_Store file, but i don't see one through my CGI/command line interface and it doesn't show up in the transcript.

    here is the transcript:

    CWD /public_html/img/store
    250 CWD command successful.
    CWD html
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,124).
    LIST
    150 Opening ASCII mode data connection for file list
    -rw-r--r-- 1 u148c183 u148c183 2732 Mar 23 21:22 AuthorizeNet-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 2686 Mar 23 21:22 ECHO-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 2732 Mar 23 21:22 Linkpoint-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 7612 Mar 23 21:22 Offline-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 3230 Mar 23 21:22 Paypal-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 2732 Mar 23 21:23 Paypal-orderform.html.1
    -rw-r--r-- 1 u148c183 u148c183 2732 Mar 23 21:22 ePN-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 4701 Mar 23 21:22 frontpage.html
    -rw-r--r-- 1 u148c183 u148c183 5395 Mar 23 21:22 frontpage.old.html
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:22 html-templates
    -rw-r--r-- 1 u148c183 u148c183 2732 Mar 23 21:22 iTransact-orderform.html
    -rw-r--r-- 1 u148c183 u148c183 15 Mar 23 21:22 index.html
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:22 options
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:22 pages
    226 Transfer complete.
    DELE AuthorizeNet-orderform.html
    250 DELE command successful.
    DELE ECHO-orderform.html
    250 DELE command successful.
    DELE Linkpoint-orderform.html
    250 DELE command successful.
    DELE Offline-orderform.html
    250 DELE command successful.
    DELE Paypal-orderform.html
    250 DELE command successful.
    DELE Paypal-orderform.html.1
    250 DELE command successful.
    DELE ePN-orderform.html
    250 DELE command successful.
    DELE frontpage.html
    250 DELE command successful.
    DELE frontpage.old.html
    250 DELE command successful.
    CWD html-templates
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html/html-templates" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,125).
    LIST
    150 Opening ASCII mode data connection for file list
    -rw-r--r-- 1 u148c183 u148c183 692 Mar 23 21:22 cart_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 973 Mar 23 21:22 cart_footernew.inc
    -rw-r--r-- 1 u148c183 u148c183 629 Mar 23 21:22 change_quantity_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 288 Mar 23 21:22 delete_items_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 277 Mar 23 21:22 empty_cart_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 15 Mar 23 21:22 index.html
    -rw-r--r-- 1 u148c183 u148c183 1350 Mar 23 21:22 productPage.?
    -rw-r--r-- 1 u148c183 u148c183 759 Mar 23 21:22 productPage.inc
    -rw-r--r-- 1 u148c183 u148c183 879 Mar 23 21:22 productPage.inc.1
    -rw-r--r-- 1 u148c183 u148c183 732 Mar 23 21:22 productPage2.inc
    -rw-r--r-- 1 u148c183 u148c183 1081 Mar 23 21:22 secure_store_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 3977 Mar 23 21:22 secure_store_header.inc
    -rw-r--r-- 1 u148c183 u148c183 2402 Mar 23 21:22 store_footer.inc
    -rw-r--r-- 1 u148c183 u148c183 5058 Mar 23 21:22 store_header.inc
    226 Transfer complete.
    DELE cart_footer.inc
    250 DELE command successful.
    DELE cart_footernew.inc
    250 DELE command successful.
    DELE change_quantity_footer.inc
    250 DELE command successful.
    DELE delete_items_footer.inc
    250 DELE command successful.
    DELE empty_cart_footer.inc
    250 DELE command successful.
    DELE index.html
    250 DELE command successful.
    DELE productPage.?
    250 DELE command successful.
    DELE productPage.inc
    250 DELE command successful.
    DELE productPage.inc.1
    250 DELE command successful.
    DELE productPage2.inc
    250 DELE command successful.
    DELE secure_store_footer.inc
    250 DELE command successful.
    DELE secure_store_header.inc
    250 DELE command successful.
    DELE store_footer.inc
    250 DELE command successful.
    DELE store_header.inc
    250 DELE command successful.
    CWD /public_html/img/store/html
    250 CWD command successful.
    RMD html-templates
    250 RMD command successful.
    DELE iTransact-orderform.html
    250 DELE command successful.
    DELE index.html
    250 DELE command successful.
    CWD options
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html/options" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,126).
    LIST
    150 Opening ASCII mode data connection for file list
    -rw-r--r-- 1 u148c183 u148c183 20 Mar 23 21:22 blank.html
    -rw-r--r-- 1 u148c183 u148c183 689 Mar 23 21:22 gift_option.html
    -rw-r--r-- 1 u148c183 u148c183 501 Mar 23 21:22 green_option.html
    -rw-r--r-- 1 u148c183 u148c183 15 Mar 23 21:22 index.html
    -rw-r--r-- 1 u148c183 u148c183 481 Mar 23 21:22 oolong_option.html
    -rw-r--r-- 1 u148c183 u148c183 16825 Mar 23 21:22 option.cgi
    -rw-r--r-- 1 u148c183 u148c183 481 Mar 23 21:22 puer_option.html
    -rw-r--r-- 1 u148c183 u148c183 481 Mar 23 21:22 red_option.html
    -rw-r--r-- 1 u148c183 u148c183 481 Mar 23 21:22 scented_option.html
    226 Transfer complete.
    DELE blank.html
    250 DELE command successful.
    DELE gift_option.html
    250 DELE command successful.
    DELE green_option.html
    250 DELE command successful.
    DELE index.html
    250 DELE command successful.
    DELE oolong_option.html
    250 DELE command successful.
    DELE option.cgi
    250 DELE command successful.
    DELE puer_option.html
    250 DELE command successful.
    DELE red_option.html
    250 DELE command successful.
    DELE scented_option.html
    250 DELE command successful.
    CWD /public_html/img/store/html
    250 CWD command successful.
    RMD options
    250 RMD command successful.
    CWD pages
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html/pages" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,127).
    LIST
    150 Opening ASCII mode data connection for file list
    -rw-r--r-- 1 u148c183 u148c183 6255 Mar 23 21:22 about.html
    -rw-r--r-- 1 u148c183 u148c183 728 Mar 23 21:22 declined.html
    -rw-r--r-- 1 u148c183 u148c183 3322 Mar 23 21:22 error.html
    -rw-r--r-- 1 u148c183 u148c183 15 Mar 23 21:22 index.html
    -rw-r--r-- 1 u148c183 u148c183 15470 Mar 23 21:22 license.html
    -rw-r--r-- 1 u148c183 u148c183 5623 Mar 23 21:22 taste.html
    226 Transfer complete.
    DELE about.html
    250 DELE command successful.
    DELE declined.html
    250 DELE command successful.
    DELE error.html
    250 DELE command successful.
    DELE index.html
    250 DELE command successful.
    DELE license.html
    250 DELE command successful.
    DELE taste.html
    250 DELE command successful.
    CWD /public_html/img/store/html
    250 CWD command successful.
    RMD pages
    250 RMD command successful.
    CWD /public_html/img/store
    250 CWD command successful.
    RMD html
    550 html: Directory not empty
    ftp_delete or ftp_rmdir: -30006 (state == RDEL_DELETING)
    PWD
    257 "/public_html/img/store" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,128).
    LIST
    150 Opening ASCII mode data connection for file list
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:23 html
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 19 23:06 images
    226 Transfer complete.
    PWD
    257 "/public_html/img/store" is current directory.
    CWD html
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,131).
    LIST
    150 Opening ASCII mode data connection for file list
    226 Transfer complete.
    CDUP
    250 CWD command successful.
    PWD
    257 "/public_html/img/store" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,132).
    LIST
    150 Opening ASCII mode data connection for file list
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:23 html
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 19 23:06 images
    226 Transfer complete.
    CWD html
    250 CWD command successful.
    PWD
    257 "/public_html/img/store/html" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,133).
    LIST
    150 Opening ASCII mode data connection for file list
    226 Transfer complete.
    CWD /public_html/img/store
    250 CWD command successful.
    RMD html
    550 html: Directory not empty
    ftp_delete or ftp_rmdir: -30006 (state == RDEL_DELETING)
    PWD
    257 "/public_html/img/store" is current directory.
    PASV
    227 Entering Passive Mode (216,22,148,183,4,134).
    LIST
    150 Opening ASCII mode data connection for file list
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 23 21:23 html
    drwxr-xr-x 2 u148c183 u148c183 4096 Mar 19 23:06 images
    226 Transfer complete.

    Posted 11 years ago #

  • biscuit_tech Member

    I take the last part back, I do see the .DS_Store file and I am pretty sure that is the cause.

    sorry if this has come up before.

    Posted 11 years ago #

  • Jim Matthews Administrator

    I'd recommend choosing "Send LIST -al to UNIX Servers" from the Obscure Options pop-up menu in the Misc section of Preferences. That should get the server to tell Fetch about hidden files, which Fetch can then delete.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 11 years ago #

Topic closed

This topic has been closed.