View Single Post
Old 11-17-2019, 09:28 AM   #452
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,807
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes bk.addfile() still works as before. It will check the filename to make sure it is unique and the add the file to the current default folder for that file group. The id is returned and you can always do a bk.id_to_bookpath() routine to get the resulting bookpath.

Or you can get the folders to be used via file group and choose among them if there is more than one, etc.

Or you can create your own bookpath and pass that to the new way to add a file.
KevinH is offline   Reply With Quote