File system operation rollback
I have a Zope product containing several classes. Certain methods of these classes invoke file system operations, almost exclusively deletes and renames. Has anyone developed a good strategy to roll back file system operations in the same way that ZODB and SQL transactions roll back in the event of an error? My file system gets out of sync quite frequently, so I would appreciate any ideas.
nwingfield@che-llp.com wrote at 2003-10-2 16:47 -0400:
I have a Zope product containing several classes. Certain methods of these classes invoke file system operations, almost exclusively deletes and renames.
"ExternalFile" implements some heuristics. Maybe, you have a look at it. Deletions could be delayed until commit (see at Jen's "MailHost" replacement for how to do this). Other file operations may be more difficult in this respect... Dieter
participants (2)
-
Dieter Maurer -
nwingfield@che-llp.com