RE: making parent directories

2002-03-05 Thread Timothy Johnson
h 05, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: making parent directories Hi, I was writing a script in which I needed to make a directory "at depth", without having the parent directories created yet. For example: #!/usr/bin/perl use warnings; mkdir("1/2/3", 0777) || die &quo

Re: making parent directories

2002-03-05 Thread Jeff 'japhy' Pinyan
On Mar 5, zentara said: >Is there a way to deal with this without resorting to a >system call? > >In bash it's easy, >mkdir -p 1/2/3 Use the File::Path module (it's standard): use File::Path 'mkpath'; mkpath($some_dir); mkpath([ $dir1, $dir2, $dir3 ]); See the documentation for more inf

making parent directories

2002-03-05 Thread zentara
Hi, I was writing a script in which I needed to make a directory "at depth", without having the parent directories created yet. For example: #!/usr/bin/perl use warnings; mkdir("1/2/3", 0777) || die "cannot mkdir 1/2/3: $!"; Is there a way to deal with this without resorting to a system call