in reply to Re^2: Recursive directories
in thread Recursive directories
The problem strikes when I have to chdir into that directory to do something there, like create a file but that's not even necessary. This piece of code creates me the mentioned "File::Path" subdirectory compared to the above :for (@list) { File::Path->make_path($path); }
for (@list) { File::Path->make_path($path); chdir $path or die "Cannot chdir: $!"; }
|
|---|