![]() |
#16 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,012
Karma: 75135251
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,587
Karma: 54930589
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
And if the bin is disabled entirely you're screwed!
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
|
Quote:
Now you may be confusing delete from library and delete from system (not sure the exact term, I’m not in front of my computer)… If so, yes, recovering from system trash does not send it back to the program. But when I actively send a file to system trash by choice, and it suddenly no longer is going to system trash but preserving files I chose to delete: that’s a flaw. By design or not, the old system worked just fine for competent users. I hope calibre doesn’t join the cliff-dice other big programs are doing: dumbing down and removing useful options for stupid people. Delete should be delete. We had two options and both worked. Deleting the entry in the program, and deleting the file from the system —to trash. |
|
![]() |
![]() |
![]() |
#19 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
|
Quote:
Restore, recover, return, put back…. It works on every major OS. I welcome any screen shots or video showing otherwise: it doesn’t happen aside from major hard drive issues or malware. |
|
![]() |
![]() |
![]() |
#20 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,587
Karma: 54930589
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,101
Karma: 53103620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It uses the file system instead of a BLOB to store the media portions. Delete inside Calibre removes both the media and the DB entries to that. Using the OS only puts the media into the old location. The DB entry is still gone |
|
![]() |
![]() |
![]() |
#22 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,012
Karma: 75135251
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
|
Quote:
Access, MSDE, MS SQL, dBaseII, MariaDB, MySQL, Oracle, DB2, SQLight: The designers will put "imported" files (Word, ebooks, archive scans, images etc in a folder/directory that's logically private. A binary blob approach of storing the imported data inside the actual database engine works badly for ebooks, images, scanned documents and MS Office files or similar. They are too large and varied in size. It's not impossible, but works poorly. In such cases you have to restore the file (from trash/bin/recycle) to somewhere outside the database's file system and freshly "add / import". So Calibre has added a private application specific "trash can" which I assume somehow also stores the metadata in a companion file. |
|
![]() |
![]() |
![]() |
#23 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,101
Karma: 53103620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() It stores a folder with the {id}, inside is the books(s) and metadata.opf. ??no cover |
|
![]() |
![]() |
![]() |
#24 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,587
Karma: 54930589
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
On at least Windows/NTFS, the folder is also hidden by default.
|
![]() |
![]() |
![]() |
#25 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,193
Karma: 130032295
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
An interesting but flawed belief. I tried that on a MacOS VM with calibre 6.10. I deleted a book and used the right click menu Put Back option. Sadly, calibre knew nothing about the book being restored from the trash so the database was not consistent with the library. Yes, the book was back in the calibre library folder and I could run Check library and go through the whole procedure. Sadly, that takes a lot more time than restoring from calibre's trash.
|
![]() |
![]() |
![]() |
#26 | |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,735
Karma: 25064168
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Earlier this week I inadvertently deleted a 'book' from my Media library, which included a 1.3 gigabyte video 'clip'. Restore from .caltrash was done & dusted in < 2 seconds. This was on a spinning rust drive. Previously, because of my miserly Recycle bin settings, I would have had to restore from backup - and that would have taken several minutes to 'copy' the 1.3GB file from a USB drive. My only gripe with the new regime is: Why did it take so long? Far as I can tell it doesn't use any calibre or platform features that didn't exist decades ago. BR |
|
![]() |
![]() |
![]() |
#27 |
Junior Member
![]() 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' |
![]() |
![]() |
![]() |
#28 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,012
Karma: 75135251
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
|
You aren't supposed to use Calibre on a Network share. Madness. Read the manual.
I only use the network to backup. I only run network aware applications to a network. Otherwise I use a local copy of the files. |
![]() |
![]() |
![]() |
#29 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2023
Device: Onyx Boox Nova Air 2, Tab X
|
Madness. To think it normal that a somewhat widely-used application in 2023 doesn't support a mechanism that has been in Windows since 1995, Linux since the mid-to-late 90's (at least), and OSX since 2002. Got it.
|
![]() |
![]() |
![]() |
#30 | ||||
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,587
Karma: 54930589
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
https://www.sqlite.org/whentouse.html Quote:
Quote:
Quote:
Last edited by ownedbycats; 05-27-2023 at 10:07 AM. |
||||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disabling .caltrash | alumoi | Calibre | 9 | 07-21-2023 08:55 AM |
[Android] Files deleted off Kindle return as "new" files | tekwrite | Calibre Companion | 5 | 02-25-2017 02:16 PM |
Classic Deleted files ghosting? | Craig_P | Barnes & Noble NOOK | 0 | 02-19-2011 10:37 PM |
Deleted files | The Terminator | Lounge | 5 | 02-04-2011 01:00 AM |
Deleted files still around | tarq | Calibre | 1 | 11-10-2009 11:09 AM |