Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: ldevantier [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: File-Path-Tiny v0.4 will no longer create a directory structure
Date: Thu, 6 Sep 2012 12:24:41 +1000
To: bug-File-Path-Tiny [...] rt.cpan.org
From: Lachlan Devantier <ldevantier [...] gmail.com>
Hi, I just updated File::Path::Tiny from v0.3 to v0.4 and it now no longer creates a directory path if the path does not exist. If I downgrade back to 0.03, everything works once more. Example: v0.3: perl -MFile::Path::Tiny -MData::Printer -e 'p($File::Path::Tiny::VERSION) ;' -e 'my $mk = File::Path::Tiny::mk("/tmp/foo/bar/baz/") ; p($mk) ; p($?) ; p($!) ;' 0.3 1 0 (LVALUE) "No such file or directory" tree /tmp/foo/ output: /tmp/foo . |-bar |---baz I rm -rf /tmp/foo/ & upgrade to File::Path::Tiny v0.4 and try the same command: v0.4: perl -MFile::Path::Tiny -MData::Printer -e 'p($File::Path::Tiny::VERSION) ;' -e 'my $mk = File::Path::Tiny::mk("/tmp/foo/bar/baz/") ; p($mk) ; p($?) ; p($!) ;' 0.4 undef 0 (LVALUE) "No such file or directory" tree /tmp/foo/ output: /tmp/foo: No such file or directory Is there any other diagnostic information I could provide that would be useful? Yours Sincerely, Lachlan Devantier
eek, thanks. Odd the tests all passed, I'll take a look and get back to you. On Wed Sep 05 22:25:11 2012, ldevantier@gmail.com wrote: Show quoted text
> Hi, > > I just updated File::Path::Tiny from v0.3 to v0.4 and it now no longer > creates a directory path if the path does not exist. If I downgrade > back to 0.03, everything works once more. > > Example: > > v0.3: > > perl -MFile::Path::Tiny -MData::Printer -e > 'p($File::Path::Tiny::VERSION) ;' -e 'my $mk = > File::Path::Tiny::mk("/tmp/foo/bar/baz/") ; p($mk) ; p($?) ; p($!) ;' > 0.3 > 1 > 0 (LVALUE) > "No such file or directory" > > tree /tmp/foo/ output: > > /tmp/foo > . > |-bar > |---baz > > I rm -rf /tmp/foo/ & upgrade to File::Path::Tiny v0.4 and try the same > command: > > v0.4: > perl -MFile::Path::Tiny -MData::Printer -e > 'p($File::Path::Tiny::VERSION) ;' -e 'my $mk = > File::Path::Tiny::mk("/tmp/foo/bar/baz/") ; p($mk) ; p($?) ; p($!) ;' > 0.4 > undef > 0 (LVALUE) > "No such file or directory" > > tree /tmp/foo/ output: > /tmp/foo: No such file or directory > > Is there any other diagnostic information I could provide that would > be useful? > > Yours Sincerely, > > Lachlan Devantier
Ah, the 0.4 is broken for absolute paths. I fixed it and added tests for absolute paths. Uploaded 0.5 to CPAN. thanks for the report!