mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 04:11:50 +01:00
Fixed IOException related to HtmlExport creating folders
This commit is contained in:
parent
6d34f1d4a0
commit
80018df960
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user