mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +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);
|
LOGGER.debug(CORE,"Making {} directory : {}", dirLabel, dirPath);
|
||||||
try {
|
try {
|
||||||
Files.createDirectory(dirPath);
|
Files.createDirectories(dirPath);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if (e instanceof FileAlreadyExistsException) {
|
if (e instanceof FileAlreadyExistsException) {
|
||||||
LOGGER.fatal(CORE,"Failed to create {} directory - there is a file in the way", dirLabel);
|
LOGGER.fatal(CORE,"Failed to create {} directory - there is a file in the way", dirLabel);
|
||||||
|
|||||||
Reference in new issue
Block a user