diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py index 7835e4f59338c699564dddc22237fb7a5bce3143..b788cf9aaec1b4d6340a3011811f71d32d88efed 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py @@ -21,6 +21,8 @@ import threading #Java Core from java.io import ByteArrayInputStream from org.apache.commons.io import IOUtils +from org.apache.commons.io import FileUtils + from java.lang import String #Zip Format @@ -288,6 +290,8 @@ def export(sessionToken, entities, userEmail, mailClient): #Send Email sendMail(mailClient, userEmail, tempZipFileWorkspaceURL); #Remove temporal folder and zip + FileUtils.forceDelete(File(tempDirPath)); + FileUtils.forceDelete(File(tempZipFilePath)); return True def getFilePath(spaceCode, projCode, expCode, sampCode, dataCode):