Skip to content

Commit

Permalink
Fixed stupid bug with new servers
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Jan 29, 2018
1 parent dd1b936 commit 2d40cfa
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -131,7 +131,11 @@ public void doBackup(IMethodCaller methodCaller, File zip, File folder, Filename
FileUtils.copyDirectory(folder, tmp);
zip.getParentFile().mkdirs();

for (File delfolder : tmp.listFiles(filter)) FileUtils.deleteDirectory(delfolder);
for (File file : tmp.listFiles(filter))
{
if (file.isFile()) file.delete();
else if (file.isDirectory()) FileUtils.deleteDirectory(file);
}

server.printLine("Making backup zip...");
methodCaller.sendMessage("Making backup zip...");
Expand Down

0 comments on commit 2d40cfa

Please sign in to comment.