Re: extension to the Mkdir component

Steve Loughran <[email protected]> Mon, 06 Mar 2006 15:44:29 +0000
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Andreas Unterkircher wrote:
> Hello,
> 
> in the file components collection it would be nice to have a Rmdir 
> component which tries to delete a directory. 
> 
> Best regards,
> Andreas

Yes, it would. Though deletion is a more complex beast, as there are 
problems like

  -f option
  -what if a dir is in use
  -what happens if something in a dir is in use, on Windows.

It's very hard to get the latter to work: you cannot even delete a dir 
in windows if the explorer has it open.

That said, a TempDir component that not only created a dir on startup, 
but deleted it on shutdown would be very good for some uses,

-steve


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642