added File.CreateDirectory

This commit is contained in:
Evil Factory
2022-03-07 16:29:32 -03:00
parent 9dbab36575
commit 245619ab72
@@ -652,6 +652,16 @@ namespace Barotrauma
return File.Exists(path);
}
public static bool CreateDirectory(string path)
{
if (!IsPathAllowedLuaException(path))
return false;
Directory.CreateDirectory(path);
return true;
}
public static bool DirectoryExists(string path)
{
if (!IsPathAllowedLuaException(path))