Skip Menu |

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 35623
Status: resolved
Priority: 0/
Queue: File-Path

People
Owner: dland [...] cpan.org
Requestors: bod [...] debian.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.04
Fixed in: 2.05



Subject: 2.04: Minor doc typo
Date: Mon, 5 May 2008 11:49:47 +1000
To: bug-File-Path [...] rt.cpan.org
From: Brendan O'Dea <bod [...] debian.org>
--- Path.pm.orig 2008-05-05 11:14:41.000000000 +1000 +++ Path.pm 2008-05-05 11:35:44.000000000 +1000 @@ -624,7 +624,7 @@ file, and the value is the error message (usually the contents of C<$!>). An example usage looks like: - rmpath( 'foo/bar', 'bar/rat', {error => \my $err} ); + rmtree( 'foo/bar', 'bar/rat', {error => \my $err} ); for my $diag (@$err) { my ($file, $message) = each %$diag; print "problem unlinking $file: $message\n"; @@ -636,7 +636,7 @@ tree that does not exist), the diagnostic key will be empty, only the value will be set: - rmpath( '/no/such/path', {error => \my $err} ); + rmtree( '/no/such/path', {error => \my $err} ); for my $diag (@$err) { my ($file, $message) = each %$diag; if ($file eq '') {
On Sun May 04 21:50:05 2008, bod@debian.org wrote: Show quoted text
> --- Path.pm.orig 2008-05-05 11:14:41.000000000 +1000 > +++ Path.pm 2008-05-05 11:35:44.000000000 +1000 > @@ -624,7 +624,7 @@ > file, and the value is the error message (usually the contents of > C<$!>). An example usage looks like: > > - rmpath( 'foo/bar', 'bar/rat', {error => \my $err} ); > + rmtree( 'foo/bar', 'bar/rat', {error => \my $err} );
Thank-you Brendan, I have updated my repo with this correction and it will be available in the next release (2.05). Thanks, David
Fixed in 2.05. Nonetheless, I recommend waiting for 2.06, which contains a fix to allow the test suite to complete if Test::Output is not installed, as well as a fix to another problem that Gisle Aas encountered yesterday. Thanks for your report, David