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.
|