View Single Post
Old 05-27-2023, 07:56 AM   #27
sile2001
Junior Member
sile2001 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2023
Device: Onyx Boox Nova Air 2, Tab X
There seriously needs to be a way to disable the .caltrash "feature". I've read the threads and posts arguing for why it exists, and I'm sure for a lot of people, it's just fine.

It fails hard for people who keep their libraries on a network share. With this change, I can no longer delete books from my library. Any attempt to do so results in an error similar to the following:

Code:
calibre, version 6.18.1
ERROR: Unhandled exception: <b>OSError</b>:[WinError 50] The request is not supported: 'X:\\books\\.caltrash'

calibre 6.18.1  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 51, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 51, 0) && KFX metadata reader (from KFX Input) (1, 51, 0) && KFX Input (1, 51, 0)
Traceback (most recent call last):
  File "calibre\gui2\actions\delete.py", line 488, in delete_books
  File "calibre\gui2\actions\delete.py", line 459, in do_library_delete
  File "calibre\gui2\library\models.py", line 466, in delete_books_by_id
  File "calibre\db\cache.py", line 85, in call_func_with_lock
  File "calibre\db\cache.py", line 2082, in remove_books
  File "calibre\db\backend.py", line 2140, in remove_books
  File "calibre\db\backend.py", line 2009, in ensure_trash_dir
OSError: [WinError 50] The request is not supported: 'X:\\books\\.caltrash'
Adding new features is great. But it's not at all necessary to prevent people from disabling this feature.
sile2001 is offline   Reply With Quote