Article View: borland.public.jbuilder.java.language
Article #19626Re: Deleting an entire directory?
From: Andrew Bennett
Date: Thu, 15 Jan 1998 00:00
Date: Thu, 15 Jan 1998 00:00
27 lines
1222 bytes
1222 bytes
Christopher J. Philpot wrote: > So here's my question. Has anyone already had to do this and have some > source code you could post? I have no idea why Sun didn't just add a > File.deleteDirectory class. Probably because it'd be a major pain to write and test on all platforms. You could write a little recursive routine: get directory contents until end is it a directory? recurse if it's a file, delete Andrew -- Andrew Bennett -> abennett@borland.com JBuilder info -> http://www.borland.com/jbuilder/ JBuilder newsgroups info -> http://www.borland.com/newsgroups/ **** Please don't post a reply AND send email. Do one. I'll see it. ****
Technical Details
Message-ID:
<34BE7218.9F2551BC@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34BD1AB8.FB6D981@usa.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9580f22e3b244237 X-Google-Attributes: gidf74b3,public From: Andrew Bennett <abennett@borland.com> Subject: Re: Deleting an entire directory? Date: 1998/01/15 Message-ID: <34BE7218.9F2551BC@borland.com> X-Deja-AN: 316298987 Content-Transfer-Encoding: 7bit References: <34BD1AB8.FB6D981@usa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: None Newsgroups: borland.public.jbuilder.java.language