View Single Post
Old 12-16-2016, 05:10 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,745
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Danesh - on Windows (I can't speak for Linux or OSX), when you remove a book, the book directory is MOVED from the library to a temporary directory in the library parent, which will have a random 6 character string in its name (e.g. 'D:\Calibre Libraries\_Test deleted avybyo' in my previous screenshot), and that means it's no longer in the library.

And then the temporary directory is MOVED to the Recycle Bin, and that in turn means it's no longer in the library parent directory.

On advanced files systems (NTFS, EXT3, HFS+ etc) the MOVES are effected via creating and destroying hardlinks, so it happens in the blink of eye. But in any event, after the delete the temporary directory will ONLY exist in the Recycle Bin.

I can't recall why calibre deletes book directories in a two step process. But I am certain it was a conscious design choice by Kovid, which he has explained a couple of times. A search of this subforum for posts by kovidgoyal that have 'delete' in them might find them.

I added some extra commentary to my previous screen shot.

BR

Last edited by BetterRed; 12-16-2016 at 05:22 AM.
BetterRed is online now   Reply With Quote