[Pdx-pm] mkdir -p ?
Roderick A. Anderson
raanders at acm.org
Fri Aug 24 10:16:30 PDT 2007
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?
Well I loved all the other suggestions. All _very_ perl but I had the
same need and just cheated since it was a Linux system and no need to
make it work on Windows.
qx{ /bin/mkdir -p path/that/was/needed }
Rod
--
>
> Keith
>
More information about the Pdx-pm-list
mailing list