mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
Fix #5429 properly, without breaking symlinks on linux..
Signed-off-by: cpw <[email protected]>
This commit is contained in:
1 file changed
+3
@@ -34,6 +34,9 @@ public class FileUtils
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
|
||||
public static Path getOrCreateDirectory(Path dirPath, String dirLabel) {
|
||||
if (!Files.isDirectory(dirPath.getParent())) {
|
||||
getOrCreateDirectory(dirPath.getParent(), "parent of "+dirLabel);
|
||||
}
|
||||
if (!Files.isDirectory(dirPath))
|
||||
{
|
||||
LOGGER.debug(CORE,"Making {} directory : {}", dirLabel, dirPath);
|
||||
|
||||
Reference in new issue
Block a user