reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Cleanup in daemon mode deletes tmps saved to existing folders #49

Closed reitzig closed 9 years ago

reitzig commented 9 years ago

In daemon mode, we remove all files that exist in the main folder from the tmp folder, and re-copy them there. This is designed to work only with the current versions of the files and not destroy temporary files.

However, we delete directories in the main folder without ever looking inside. That is problematic if temporary files are saved to such as they are deleted.

Use case: with TikZ externalization you can use a figure prefix with a folder name (for the purpose of keeping a cleaner tmp folder, or main folder for collaborators that use other tools); the folder needs to exist (pdflatex won't create it) so you delete all resulting figures between iterations, effectively nullifying the advantage of externalization.