[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] recursive delete



At 4:05 PM -0400 6/28/99, Ronald J Kimball wrote:
>On Mon, Jun 28, 1999 at 12:31:29PM -0700, Jeremy Andrews wrote:
...
>> Is there a good way to recursively delete a directory and all of its
>> subdirectories?  I've attempted to do this with the following code,
>> but it doesn't work.  (I'm programming this on my Mac, but it's
...
>
>Instead of writing the solution from scratch, I would recommend using the
>finddepth() function from the File::Find module.
>

Even simpler is rmtree() from File::Path.

Jim
--
Jim Miner          jfm@winternet.com

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org