rustic has asked for the wisdom of the Perl Monks concerning the following question:
What happens here is that a "File::Path" directory is created inside each new directory. If I omit the chdir part, it does behave correctly i.e. an empty new directory.use File::Path 'make_path'; File::Path->make_path($path); chdir $path or die "Cannot chdir: $!";
According to the same perldoc there's a bug report page for it, but I want to discuss it here first.VERSION This document describes version 2.08 of File::Path, released 2009- +10-04.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recursive directories
by Jenda (Abbot) on Apr 02, 2014 at 12:08 UTC | |
|
Re: Recursive directories
by McA (Priest) on Apr 02, 2014 at 12:08 UTC | |
|
Re: Recursive directories
by rustic (Monk) on Apr 02, 2014 at 13:53 UTC | |
by McA (Priest) on Apr 02, 2014 at 14:22 UTC | |
by rustic (Monk) on Apr 02, 2014 at 14:57 UTC | |
|
Re: Recursive directories
by cord-bin (Friar) on Apr 02, 2014 at 12:25 UTC | |
by McA (Priest) on Apr 02, 2014 at 12:56 UTC | |
by cord-bin (Friar) on Apr 03, 2014 at 12:23 UTC |