Deleting files and then a directory? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Deleting files and then a directory?

How do you delete the files in a directory and then the directory itself? I've been looking, reading books and I still haven't figured out how to do more than delete a single file with unlink.


Comments

  • : How do you delete the files in a directory and then the directory itself? I've been looking, reading books and I still haven't figured out how to do more than delete a single file with unlink.

    :



    why not get the shell to do it then, rm -rf foldername

    system() or ``






    URL:http://plebian.com

Sign In or Register to comment.