View Single Post
Old 07-08-2023, 02:10 PM   #69
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I ran into an issue when using FanFicFare to update a story that had a data folder.

Code:
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 1798, in update_books_loop
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 2268, in update_metadata
  File "calibre\db\legacy.py", line 588, in set_metadata
  File "calibre\db\cache.py", line 85, in call_func_with_lock
  File "calibre\db\cache.py", line 1691, in set_metadata
  File "calibre\db\cache.py", line 1686, in set_field
  File "calibre\db\cache.py", line 1481, in set_field
  File "calibre\db\backend.py", line 1726, in windows_check_if_files_in_use
  File "calibre\utils\copy_files.py", line 249, in windows_check_if_files_in_use
  File "calibre\utils\copy_files.py", line 231, in register_folder_recursively
  File "os.py", line 225, in makedirs
PermissionError: [WinError 5] Access is denied: 'C:\\WINDOWS\\system32\\data'
Neither book nor folder was open. Windows' indexing is outright disabled, but I used Everything to search for the book earlier. (There were no open file handles when I checked though.)

Additionally, the system32 folder is a bit weird. I don't think is a data folder in there.

The FanFicFare author is equally baffled:

Quote:
Originally Posted by JimmXinu View Post
An error at that location should have the opposite effect you describe--updated epub but not metadata. Unless Calibre didn't roll back the update, in which case, you might still see metadata update.

That's Calibre code and the 'data' dir is a Calibre feature. Kovid has decided Calibre needs to be a lot more assertive about windows file locking. I don't know enough about it to say whether he's correct or not.

After the third time I bumped into the problem I reported I went back to Calibre v6.19.1. I was seeing it happen with file explorer 'Quick access', not just searches.

I haven't done anything with data directories, but judging by the system32 directory, I would suspect it's something somewhere looking for a relative 'data' without a full path.
ownedbycats is offline   Reply With Quote