Delete the MapParser zip file from root directory after copied
This commit is contained in:
parent
efb3c26115
commit
efa03945cb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user