CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Frequently Asked Questions:
How do I delete a directory?

 



Jasmine
Administrator

Dec 9, 2000, 9:55 AM

Post #1 of 2 (4709 views)
How do I delete a directory? Can't Post

How do I delete a directory?

View post


sleuth
Enthusiast

Dec 12, 2000, 12:42 AM

Post #2 of 2 (4706 views)
Re: How do I delete a directory? [In reply to] Can't Post

I couldn't find where that post is now, with the new change, but to delete a directory, you must first delete it's contents like so

unlink "/home/data/public_html/directory/*";

Then use rmdir; remove directory.

rmdir "/home/data/public_html/directory";

Sleuth


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives