Zip file server import copies extracted data extraneously

Summary

I was trying to import a ~60GB zip file but was running out of storage, breaking my Crafty instance. I eventually found out all of the files were extracted in /tmp/tmpo036rnua/ and it was creating another copy of the files in the servers folder.

Area of the system

Create New Server

How does this currently work?

When you upload a zip for import, the entire zip is extracted to a temporary folder in /tmp in order to let you select the location of the root directory. However, after you select the root and begin the import, it makes another copy of the files from the selected root in the temporary directory to the servers directory.

What is the desired way of working?

Files should be moved from the temporary location instead of being copied, or the files should be extracted to the servers directory in the first place.

Priority/Severity

  • High (This will bring a huge increase in performance/productivity/usability)
  • Medium (This will bring a good increase in performance/productivity/usability)
  • Low (anything else e.g., trivial, minor improvements)
Edited Jan 12, 2025 by TCAtrevor
Assignee Loading
Time tracking Loading