|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: rm -rf and mkdir -p modules? [fwd^2]
|
----- Forwarded message from owner-phl@lists.pm.org -----
Date: Tue, 21 May 2002 12:42:07 -0700
From: Schuyler Erle <schuyler@oreilly.com>
To: phl@lists.pm.org
Subject: Re: rm -rf and mkdir -p modules? [fwd]
Adam Turoff wrote:
>
> ----- Forwarded message -----
>
> To: "Kyle R . Burton" <mortis@voicenet.com>
> Cc: phl@lists.pm.org
> Subject: Re: rm -rf and mkdir -p modules?
> Date: Tue, 21 May 2002 11:19:37 -0400
> From: Mark-Jason Dominus <mjd@plover.com>
>
> > Anyone know of pre-existing CPAN Modules that can do the equivalent of
> > mkdir -p and rm -rf in a platform independant way?
>
> You ought to be able to build rm-rf atop of File::Find in a few
> minutes.
How about File::Path? Comes with 5.6.1... From the POD:
NAME
File::Path - create or remove directory trees
SYNOPSIS
use File::Path;
mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);
rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);
DESCRIPTION
The "mkpath" function provides a convenient way to create
directories, even if your "mkdir" kernel call won't create
more than one level of directory at a time. "mkpath"
takes three arguments....
HTH, HAND!
SDE
----- End forwarded message -----
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|