develooper Front page | perl.beginners | Postings from February 2012

remove_tree question

Thread Next
From:
Manfred Lotz
Date:
February 25, 2012 11:27
Subject:
remove_tree question
Message ID:
20120225202412.096b4c9c@arcor.com
Hi all,
I had a look at remove_tree from File::Path.

Let us say I have a directory: ./a/b/c/d

When I do 

remove_tree('./a',
	{
	   verbose => 1
	});

I get the following messages:

rmdir d
rmdir c
rmdir b
rmdir ./a


Is there a way to get nice messages like this:

rmdir ./a/b/c/d
rmdir ./a/b/c
rmdir ./a/b
rmdir ./a'

?

Or is there another module which does give nicer messages when deleting
a directory tree?

-- 
Manfred








Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About