Delete the MapParser zip file from root directory after copied

This commit is contained in:
Shaun Bennett 2014-09-23 17:05:21 -05:00
parent efb3c26115
commit efa03945cb

View File

@ -107,7 +107,10 @@ public class WorldManager
try
{
FileUtils.copyFile(new File(fileName), new File(File.separator + "home" + File.separator + "mineplex" + File.separator + "update" + File.separator + "maps" + File.separator + gameType.GetName() + File.separator + fileName));
File zipFile = new File(fileName);
FileUtils.copyFile(zipFile, new File(File.separator + "home" + File.separator + "mineplex" + File.separator + "update" + File.separator + "maps" + File.separator + gameType.GetName() + File.separator + fileName));
// Delete the zip file in root directory once zip is copied
FileUtils.deleteQuietly(zipFile);
}
catch (IOException e)
{