Iodine98 / dora-back

A Python backend for Document Retrieval and Analysis (DoRA).
MIT License
0 stars 1 forks source link

Add methods for creating and deleting temp folder of session id #35

Closed Iodine98 closed 5 months ago

Iodine98 commented 5 months ago

This pull request adds two new methods, create_tmp_dir and delete_tmp_dir, to the ServerMethods class. These methods are responsible for creating and deleting a temporary folder for a given session ID. The create_tmp_dir method creates a temporary directory to store the files of the session ID before processing them asynchronously, while the delete_tmp_dir method deletes the temporary directory when processing has finished. This improves the organization and cleanup of temporary files in the application.

Iodine98 commented 5 months ago

This pull request removes the temp folder every time the files have been processed from the upload as to not overflow the temporary storage and not exceed the container size.