On 25/04/06, RICHARD FERNANDEZ <[EMAIL PROTECTED]> wrote:
>>
>> Is there a definative way to recreate the gnu `rm -rf` in perl?
>
> You could use rmtree.
>
> perldoc File::Path

Looks good, but then I saw this:
NOTE: There are race conditions internal to the implementation of
       "rmtree" making it unsafe to use on directory trees which may be
       altered or moved while "rmtree" is running, and in particular on any
       directory trees with any path components or subdirectories potentially
       writable by untrusted users.

eek - I'm running this on a shared folder, it's possible if unlikely....

I wonder if I'm using the wrong tool here and maybe  a shell script is
the right way to go...
My next issue is the equiv of tar -cvjf and that's going to take a tar
module and a compression module...  I'm starting to think I'm coming
at this the wrong way.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to