-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a proper way to purge the temp directory? #24
Comments
We could have such an option ; another one would be just to write the list, and to document it so that users may use third-party tools to remove unused files (from a Makefile or such). |
I just want to chime in and say that having a well defined temporary directory makes it easier on existing purge functions, such as those which might be present in an editor. I have a feature request which I will be reiterating in about a month (the developer is too busy at the moment to work on it) to allow TeXShop to delete temporary directories when it deletes auxiliary files. Being able to easily identify the appropriate directory to delete is critical to making such a feature usable. |
I would say this responsibility may well be left to the user (to use a given default temp directory or select their own). In addition different editors may have different "thoughts" about default directories ...
This is of course a good idea. In that case I would vote for both: write a list with written/used files (that may or may not become also useful for versioning strategies) and offer the option to purge the temp directory. Maybe writing a list could be done always (or at least be on by default) while |
This issue is partially solved by 33eca91 :
For now, |
Yes, I think so. I will test tomorrow, that will make more sense ;-) |
One reasonable behaviour would be to use For this to work:
|
Fixed in #43 |
the lilypond temp directory will grow really fast, with a full set of files for any modification of any score (even size changes). There should be a nice way to purge the temp directory, although it may be difficult to decide what to throw out.
One idea (that could be implemented as a package option
purge
) would be to remove all files from the temp directory that are not actually used by the document. For this to work all generated hash filenames should be stored in a list (can conveniently be done in the new functionhash_output_filename
introduced in 923a28a) and at the end of the LaTeX run all files from the temp directory that don't belong to any of the hashes are removed.Of course this could trigger unnecessary LilyPond runs, for example when the line width is temporarily modified and later reverted. But that's why it would be a package option and not built in.
The text was updated successfully, but these errors were encountered: