View Single Post
Old 03-16-2015, 06:36 PM   #26
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,797
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
Sigil saves to a temp epub first and then physically overwrites the original epub to save extended file attributes on the Mac. Only once the copy is successfully complete does it delete the temp epub in the temp folder.

So since the file copy never completed, there should be a temp version of the epub as a zip file someplace in the temp directory. Unless the reboot caused the temp directory to be wiped. On Mac is typically is not wiped until needed. I am not sure how that works on Windows. So he should find the entire epub as a zip in the Sigil temporary directory on his OS.
@KevinH - one has to go out of ones way to flush the Windows temporary folder automatically by scheduling a 3rd party app to run at shutdown, a batch file to run at startup... or something similar. It's not a normal practice.

I can confirm that if Sigil is not closed gracefully in Windows then the copy of the file under edit (as originally read) remains in ...\Temp\sigil\scratchpad - it's unpacked so it would need to be zipped with epub extension.

If I restart Windows and Sigil has an unsaved file, I get Sigil's normal "File hasn't been saved - Save, Discard, Cancel" popup message, and if I ignore that I get the following after ~10 seconds

Click image for larger version

Name:	Screenshot - 2015-03-17 , 09_02_50.jpg
Views:	294
Size:	36.2 KB
ID:	136083

I think that waits forever for a response.

But I'm not sure if the above is true if Windows Update initiates the Restart automatically, the way I have it configured that can't happen and I'm not minded to change it for testing.

So I suggest there's nothing to do... unless if'n you wanted to implement some sort of recovery scheme via automatic periodic saves

BR
BetterRed is offline   Reply With Quote