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)
|
||||
{
|
||||
if(!path)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(SystemTools::FileExists(path))
|
||||
{
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user