Skip to content

Do not delete a course's html_temp directory when archiving it. - #3127

Merged
Alex-Jordan merged 1 commit into
openwebwork:developfrom
drgrice1:archive-course-no-delete-html-temp
Aug 12, 2026
Merged

Do not delete a course's html_temp directory when archiving it.#3127
Alex-Jordan merged 1 commit into
openwebwork:developfrom
drgrice1:archive-course-no-delete-html-temp

Conversation

@drgrice1

@drgrice1 drgrice1 commented Aug 11, 2026

Copy link
Copy Markdown
Member

There is no reason to delete this directory when a course is archived. It cannot be inside the course directory, since the webwork2 app does not serve these files from there, and so will not be contained in the archive in any case. So simply delete the line that does this deletion. It is not needed.

Also remove the code for deleting some old "original default tmp" directory. If you still have such a directory in your course it is because you have restored some really old course archive file that has this directory, and it is time to upgrade the archives you are using. There is a statute of limitations on things like this. This obsolete code needs to go.

This addresses issue #3048.

There is no reason to delete this directory when a course is archived.
It cannot be inside the course directory, since the webwork2 app does
not serve these files from there, and so will not be contained in the
archive in any case.  So simply delete the line that does this deletion.
It is not needed.

Also remove the code for deleting some old "original default tmp"
directory.  If you still have such a directory in your course it is
because you have restored some really old course archive file that has
this directory, and it is time to upgrade your archives you are using.
There is a statute of limitations on things like this. This obsolete
code needs to go.

This addresses issue openwebwork#3048.
@drgrice1
drgrice1 force-pushed the archive-course-no-delete-html-temp branch from 2a5fe19 to 0827556 Compare August 11, 2026 23:56
@Alex-Jordan
Alex-Jordan merged commit b8354bc into openwebwork:develop Aug 12, 2026
1 check passed
@drgrice1
drgrice1 deleted the archive-course-no-delete-html-temp branch August 12, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants