RenameDir

This function renames a directory.

Syntax

Parameters

Returns

Returns true if the directory was renamed, otherwise false is returned.

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);
FileSystem::RenameDir(path,"MyNewDir");

return 0;
}