delete a non empty directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sethupnr
    New Member
    • Sep 2007
    • 26

    delete a non empty directory

    hi

    i'm creating an FTP client using java.I hav one question,how can i delete a non empty directory in a remote server. I'm using common net FTPClient . Plz guide me.

    thanks in advance
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by sethupnr
    i'm creating an FTP client using java.I hav one question,how can i delete a non empty directory in a remote server. I'm using common net FTPClient . Plz guide me.
    First you have to remove all that is stored in that directory and then you can delete the (now empty) directory. A simple recursive method call can do the job.

    kind regards,

    Jos

    Comment

    Working...