mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix parent directory creation in *nix
This commit is contained in:
parent
1da64f900f
commit
89114cab05
@ -178,6 +178,8 @@ public static class AbsolutePathExtensions
|
|||||||
|
|
||||||
public static void CreateDirectory(this AbsolutePath path)
|
public static void CreateDirectory(this AbsolutePath path)
|
||||||
{
|
{
|
||||||
|
if (path.Depth > 1 && !path.Parent.DirectoryExists())
|
||||||
|
path.Parent.CreateDirectory();
|
||||||
Directory.CreateDirectory(ToNativePath(path));
|
Directory.CreateDirectory(ToNativePath(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user