View Single Post
Old 10-13-2022, 10:24 PM   #13
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by BetterRed View Post
@VelvetElvis - The issue is Permissions related (which are distinct from read only, hidden etc Attributes) - open the culprit folder's Properties in File Explorer, and have a look in the Security tab for any anomalies.

If you're brave you could give Everyone permission to have Full control over Mr. Del Toro's folder and delete it manually, and then run Library check to expunge the folder from the calibre database.

PS: and please post the error text rather than images - that's why there's a Copy to clipboard button.

BR
Thanks for everyone's your comments, but no joy so far.

I copied my entire Calibre library to another folder on my drive, and opened a portable copy of Calibre.
Tried deleting files. Here’s the error box contents:

calibre, version 6.6.1
ERROR: Permission denied: Could not access Jieun Baek. Is it being used by another program? Click "Show details" for more information.

Traceback (most recent call last):
File "calibre\gui2\actions\delete.py", line 389, in do_library_delete
File "calibre\gui2\library\models.py", line 459, in delete_books_by_id
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 2034, in remove_books
File "calibre\db\backend.py", line 1854, in remove_books
File "calibre\db\delete_service.py", line 66, in delete_books
File "calibre\db\delete_service.py", line 70, in queue_paths
File "calibre\db\delete_service.py", line 100, in _queue_paths
File "calibre\utils\filenames.py", line 496, in remove_dir_if_empty
PermissionError: [WinError 5] Access is denied: 'D:\\TEST\\Calibre Library - Main\\Jieun Baek'

-------------------8<
These files are definitely not in use by another program.
Tried checking permissions, and don’t see anything out of the ordinary.
As suggested, I tried LockHunter, and I’m not sure if I understand it correctly, but pointed it to my library folder, and ran it. I’m not sure if it recursively unlocks all files in the library, but in any event, it didn’t work.

One notable point is that for every book I tried to delete, a temporary folder was created under my main library. I.e.
D:\TEST\Calibre Library – Main
D:\TEST\Calibre Library - Main deleted 1sy0qdr2
D:\TEST\Calibre Library - Main deleted ku0eowm7
etc.

EDIT:
I tried copying my library to a flash drive and opening it. I was able to delete books without an error message. So I'm not sure what could cause this same library to error out on my D: drive?

Last edited by VelvetElvis; 10-13-2022 at 10:29 PM.
VelvetElvis is offline   Reply With Quote