mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-12 21:54:02 +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);
|
List<String> lines = FileUtil.lines(plugin, new File(plugin.getDataFolder(), possibleFile), resource);
|
||||||
String outputFile = possibleFile.replace("web/", "");
|
String outputFile = possibleFile.replace("web/", "");
|
||||||
File to = new File(outputFolder, outputFile);
|
File to = new File(outputFolder, outputFile);
|
||||||
to.mkdirs();
|
to.getParentFile().mkdirs();
|
||||||
if (to.exists()) {
|
if (to.exists()) {
|
||||||
to.delete();
|
to.delete();
|
||||||
to.createNewFile();
|
to.createNewFile();
|
||||||
|
Loading…
Reference in New Issue
Block a user