On 04 Oct 2004 05:15:04 -0700, Randal L. Schwartz <[EMAIL PROTECTED]> wrote:
> >>>>> "John" == John  <[EMAIL PROTECTED]> writes:
> 
> John> can the above be done with one perl function?
> 
> use File::Path qw(rmtree);
> rmtree('/some/path/to/the/top');
> 
If the directory has read-only permission shouldn't the program report
"read-only directory. Can't delete !" or something without having to
explicitly die??  Are the semantics heading the right way here?? It
seems rmtree is doing 'chmod +wx' or something here before deleteing
the dir/file, is it right or is it implementation dependent via the
programmer?

> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

[snip]

-- 
Cheers,
SanoBabu

-- 
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