I know there are many softwares about recovering deleted files. I did not have version control in order in one system, and the file was replaced by an empty file.
I would like to understand if there is any chances of restoring the file. It is .tex file of some hundreds of lines. I had it in BitTorrentSync but it does not store old versions. This complication was caused either by TextMate 2beta when running compilation in non-TeX document; BitTorrentSync (has been unstable in 2.x but weak evidence). The file got empty with 50kB total size as a complication.
In the compilation, I had in place the option --shell-escape
with XeLaTeX which allows to run Python inside LaTeX document.
View
In TextMate, you see the corrupted file
In doing vim file.tex
, I see corrupted file
Last login: Wed Apr 6 21:41:50 on ttys000
MacBook-Air-3:~ masi$ vim /Users/masi/BitTorrentSync/diseases/1.4.2016.tex
Clinical infectious disease - David Sch...
Mandel
Herpes virus infection % = Herpesviridae
\begin{itemize}
"~/BitTorrentSync/InfectiousDiseases/1.4.2016.tex" 1909L, 50380C
which indicates that something has went very bad wrong, most probably in the compilation of TextMate.
How to Restore an Old Version of a File in El Capitan?