RenameDir
This function renames a directory.
Syntax
- bool RenameDir(string src, string dst)
Parameters
- src: the full path to the file to rename.
- dst: the new name of the file, without the full path.
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
--Create a folder
local path = "MyDir"
FileSystem:CreateDir(path)
FileSystem:RenameDir(path,"MyNewDir")