[Pdx-pm] mkdir -p ?

Kevin Scaldeferri kevin at scaldeferri.com
Wed Aug 22 11:54:07 PDT 2007


File::Path::mkpath

http://search.cpan.org/~nwclark/perl-5.8.8/lib/File/Path.pm


-kevin


On Aug 22, 2007, at 11:47 AM, Keith Lofstrom wrote:

>
> The dirvish backup script (written in Perl) does a mkdir to make the
> directory where new backups go.  One of the users makes many backups
> per day, and would like to organize those into subtrees.   This
> would be easy if Perl had the equivalent of "mkdir -p ARG" rather
> than just "mkdir ARG".
>
> I can think of many ways to fake "mkdir -p" (recursive, system call,
> etc.) but there is probably an elegant way to do it.  Suggestions?
>
> Keith
>
> --  
> Keith Lofstrom          keithl at keithl.com         Voice (503)-520-1993
> KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in  
> Silicon"
> Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
> _______________________________________________
> Pdx-pm-list mailing list
> Pdx-pm-list at pm.org
> http://mail.pm.org/mailman/listinfo/pdx-pm-list



More information about the Pdx-pm-list mailing list