mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Make sure to create entire path for directory, fixes #5429
This commit is contained in:
1 parent
e000fd2f8f
commit
77dd9eb883
1 file changed
+1
-1
@@ -38,7 +38,7 @@ public class FileUtils
|
||||
{
|
||||
LOGGER.debug(CORE,"Making {} directory : {}", dirLabel, dirPath);
|
||||
try {
|
||||
Files.createDirectory(dirPath);
|
||||
Files.createDirectories(dirPath);
|
||||
} catch (IOException e) {
|
||||
if (e instanceof FileAlreadyExistsException) {
|
||||
LOGGER.fatal(CORE,"Failed to create {} directory - there is a file in the way", dirLabel);
|
||||
|
||||
Reference in new issue
Block a user