rm -rf in perl

2006-04-25 Thread Brian McKee
Is there a definative way to recreate the gnu `rm -rf` in perl? I've seen a couple of modules that seem to implement something, and a bunch of variations using File::Find, but it just seems overly complicated.Since it's important I understand exactly what it's going to do (it&

RE: rm -rf in perl

2006-04-25 Thread RICHARD FERNANDEZ
Is there a definative way to recreate the gnu `rm -rf` in perl? I've seen a couple of modules that seem to implement something, and a bunch of variations using File::Find, but it just seems overly complicated.Since it's important I understand exactly what it's going to do

Re: rm -rf in perl

2006-04-25 Thread Brian McKee
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 im

Re: rm -rf in perl

2006-04-25 Thread JupiterHost.Net
Brian McKee wrote: 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 implementat

Re: rm -rf in perl

2006-04-25 Thread Mr. Shawn H. Corey
On Tue, 2006-25-04 at 16:41 -0500, JupiterHost.Net wrote: > althought technically any rm -rf (ven the shell itself) has a race > condition since it could clean out directory, move on and then, someone > adds a file between cleaning out the directory and its removal. Sorry, there is no such race

Re: rm -rf in perl

2006-04-26 Thread Jay Savage
On 4/25/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Tue, 2006-25-04 at 16:41 -0500, JupiterHost.Net wrote: > > althought technically any rm -rf (ven the shell itself) has a race > > condition since it could clean out directory, move on and then, someone > > adds a file between cleaning o

Re: rm -rf in perl

2006-04-26 Thread JupiterHost.Net
Mr. Shawn H. Corey wrote: On Tue, 2006-25-04 at 16:41 -0500, JupiterHost.Net wrote: althought technically any rm -rf (ven the shell itself) has a race condition since it could clean out directory, move on and then, someone adds a file between cleaning out the directory and its removal. S