CreateDir
This function creates a new directory.
Syntax
- static bool CreateDir(const std::string& path, bool recursive=false)
Parameters
- path: this is the path to the new directory.
- recursive: if set to true, this will create any missing folders in the specified path.
Remarks
This function will have no effect if Lua sandboxing is enabled.
Example
#include "Leadwerks.h"
using namespace Leadwerks;
int main(int argc, const char *argv[])
{
//Create a folder
std::string path = "MyDir";
FileSystem::CreateDir(path);
return 0;
}