Fixed IOException related to HtmlExport creating folders

This commit is contained in:
Rsl1122 2017-12-16 13:05:11 +02:00
parent 6d34f1d4a0
commit 80018df960

View File

@ -182,7 +182,7 @@ public class HtmlExport extends SpecificExport {
List<String> lines = FileUtil.lines(plugin, new File(plugin.getDataFolder(), possibleFile), resource);
String outputFile = possibleFile.replace("web/", "");
File to = new File(outputFolder, outputFile);
to.mkdirs();
to.getParentFile().mkdirs();
if (to.exists()) {
to.delete();
to.createNewFile();