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.
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.
This pull request adds two new methods,
create_tmp_dir
anddelete_tmp_dir
, to theServerMethods
class. These methods are responsible for creating and deleting a temporary folder for a given session ID. Thecreate_tmp_dir
method creates a temporary directory to store the files of the session ID before processing them asynchronously, while thedelete_tmp_dir
method deletes the temporary directory when processing has finished. This improves the organization and cleanup of temporary files in the application.