Output directory permission for #481 and #534

This commit is contained in:
BuildTools 2018-11-28 00:47:19 -05:00
parent 4cbeac1d10
commit 9a6465e6a4

View File

@ -267,7 +267,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
File outDir = new File(outFile.getPath().replace(outFile.getName(), ""));
if (!outDir.exists()) {
outDir.mkdirs();
if (!outDir.mkdirs()) {
getLogger().log(Level.SEVERE, "Failed to make directories for " + outFile.getName() + "(canWrite= " + outFile.canWrite());
}
}
try {