View Single Post
Old 04-21-2023, 10:05 AM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
The book/data folders don't seem to be copied at all, even they only contain one file.

I only tried copy, not copy and delete, I copied to an empty library, with and without custom columns.

BR
@kovid: I can replicate this problem. It seems to be caused by this in db.copy_to_library
line 108 is
Code:
                nbp = newdb.field_for('path', book_id)
but should be
Code:
                nbp = newdb.field_for('path', new_book_id)
I didn't push the change because I am not confident enough that I understand all the ramifications. However, with the change, "Copy to library" does copy the data files.
chaley is offline   Reply With Quote