>
> Yes, I was aware of SelfDeletingFile. I was thinking of perhaps adding 
> deleteOnExit attribute to the Files component, or patching together a new 
> component, based on Files.
>

OK. I'm just checking in a DeleteFile component that does the delete 
operation but is more helpful on a failure, even security exceptions are 
caught and turned into errors.

I also had a quick scan and cleanup of the test of that code, again 
checking it in as we speak. Looking at that code, the target for 
modification would be to subclass FilesCompoundImpl and have a child 
DeleteFiles which would call FilesCompoundImpl.sfStart(), take that list 
of files and do a best effort attempt at deleting them, tracking which 
ones couldn't be deleted and adding that up to some results which could 
be reported or turned into an error.

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

Reply via email to