[Adium-devl] Importer API

Peter Hosey boredzo at gmail.com
Wed Apr 11 08:50:53 UTC 2007


On Apr 11, 2007, at 01:16:50, Ofri Wolfus wrote:
> easy canceling (by imply invalidating the input source or removing  
> it temporarily from the runloop for pausing)

Well, we also ought to roll back the changes.

One way would be to output the new logs to a new folder (e.g.  
“Imported logs 2007-04-11 014838”), and when the import finishes, run  
a subprocess that cds into the folder, makes a tar archive of its  
contents, cds into the real Logs folder, untars the archive, and  
unlinks the archive. Then, canceling this operation consists of  
unlinking the archive. Whether it succeeds, fails, or is canceled, it  
would be immediately followed by moving the folder to the Trash.
___________________________________
\ Peter Hosey / boredzo at adiumx.com
PGP public key ID: C6550423 (since 2007-01-01)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070411/35c7ddb3/attachment.sig>


More information about the devel mailing list