Fix parent directory creation in *nix

This commit is contained in:
Timothy Baldridge 2021-10-23 17:18:43 -06:00
parent 1da64f900f
commit 89114cab05

View File

@ -178,6 +178,8 @@ public static class AbsolutePathExtensions
public static void CreateDirectory(this AbsolutePath path)
{
if (path.Depth > 1 && !path.Parent.DirectoryExists())
path.Parent.CreateDirectory();
Directory.CreateDirectory(ToNativePath(path));
}