clean up log file deletion and add unit test
This commit is contained in:
@@ -201,10 +201,6 @@ module.exports = ResourceWriter = {
|
||||
// knitr cache
|
||||
should_delete = false
|
||||
}
|
||||
if (path.match(/^output.(stdout|stderr)$/)) {
|
||||
// latexmk output
|
||||
should_delete = true
|
||||
}
|
||||
if (path.match(/^output-.*/)) {
|
||||
// Tikz cached figures (default case)
|
||||
should_delete = false
|
||||
@@ -235,7 +231,9 @@ module.exports = ResourceWriter = {
|
||||
path === 'output.pdf' ||
|
||||
path === 'output.dvi' ||
|
||||
path === 'output.log' ||
|
||||
path === 'output.xdv'
|
||||
path === 'output.xdv' ||
|
||||
path === 'output.stdout' ||
|
||||
path === 'output.stderr'
|
||||
) {
|
||||
should_delete = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user