Fix #5429 properly, without breaking symlinks on linux..
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
parent
c6afb2be3f
commit
c25214aaf4
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ public class FileUtils
|
||||||
private static final Logger LOGGER = LogManager.getLogger();
|
private static final Logger LOGGER = LogManager.getLogger();
|
||||||
|
|
||||||
public static Path getOrCreateDirectory(Path dirPath, String dirLabel) {
|
public static Path getOrCreateDirectory(Path dirPath, String dirLabel) {
|
||||||
|
if (!Files.isDirectory(dirPath.getParent())) {
|
||||||
|
getOrCreateDirectory(dirPath.getParent(), "parent of "+dirLabel);
|
||||||
|
}
|
||||||
if (!Files.isDirectory(dirPath))
|
if (!Files.isDirectory(dirPath))
|
||||||
{
|
{
|
||||||
LOGGER.debug(CORE,"Making {} directory : {}", dirLabel, dirPath);
|
LOGGER.debug(CORE,"Making {} directory : {}", dirLabel, dirPath);
|
||||||
|
|
Loading…
Reference in a new issue