Fix #5429 properly, without breaking symlinks on linux..

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-02-10 15:58:12 -05:00
1 parent c6afb2be3f
commit c25214aaf4
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);