Skip to content
Snippets Groups Projects
Commit dc0b5915 authored by juanf's avatar juanf
Browse files

SSDM-3092 : Export functionality, cleanning temporal files

SVN: 36619
parent f2fc2840
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment