View Single Post
Old 10-07-2016, 11:05 AM   #55
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,900
Karma: 29151636
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@dickloraine: Look at the safe_replace() function in calibre.utils.zipfile this is what calibre uses to update the OPF inside EPUB files safely, and relatively efficiently.
kovidgoyal is online now   Reply With Quote