@
DrChiper - I didn't think you would fall into the cascading folders trap, but I thought it worth mentioning.
I'm using Windows 10 version 1706 (up to date as of 30 minutes ago), and Calibre 2.80. This computer had it's 10th birthday last November. My tests were of:
Save to Disk->Save to disk in a single directory on a book that only has an epub, and my STD settings are thus:
In that environment I can't reproduce what you've described. Calibre always saves the current EPUB (or other formats). If the file already exists it is always overwritten and the mod and create timestamps are always the date and time of the STD operation - even if I don't change the EPUB.
The overwrite happens irrespective of the create and mod timestamps of the existing file. I tried backdating to the 19th and forward dating to the 22nd centuries. I tried make the existing file Read Only and I got this error.
Code:
calibre, version 2.80.0
ERROR: Error while saving: Failed to save any books to disk, click "Show details" for more information
Failed to save the EPUB format of: Bleak House by Charles Dickens to disk, with error:
Traceback (most recent call last):
File "site-packages\calibre\gui2\save.py", line 263, in write_book
File "site-packages\calibre\gui2\save.py", line 284, in write_fmt
File "site-packages\calibre\startup.py", line 116, in local_open
IOError: [Errno 13] Permission denied: u'C:\\_Scratch\\SaveBook\\Bleak House - Charles Dickens.epub'
I guess one could make a case for an
optional warning message if a file already exists.
BR