posted 7 years ago
Hi,
I have requirement where the application provides the user the fecility of downloading an xml file in the format of ".tar.gz" format. This should be done such a way that the xml being downloaded should be placed in a temporary dierectory and then this direcoty should be added to the ".tar.gz" file. Once the file is created, the temporary directory should be deleted. I have tried using "org.apache.commons.io.FileUtils.deleteDirectory()" and also File - "delete()" method. But the problem I am encountering here is that once the folder is created and archive is also flushed through the output stream the folder is not getting deleted.
here is the peice of code that i have written for the above.
"createTarGz()" method
And is it possible to create the tar.gz file without having to create a physical directories?
Please Help
Regards
Dilip H P