ENH: check for empty path
This commit is contained in:
parent
943de01060
commit
5b98b7af78
|
@ -337,6 +337,10 @@ const char* SystemTools::GetExecutableExtension()
|
||||||
|
|
||||||
bool SystemTools::MakeDirectory(const char* path)
|
bool SystemTools::MakeDirectory(const char* path)
|
||||||
{
|
{
|
||||||
|
if(!path)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(SystemTools::FileExists(path))
|
if(SystemTools::FileExists(path))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue