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