HolyLib Wiki

Rename

  boolean filesystem.Rename( string oldFileName, string newFileName, string gamePath = DATA )

Description

Renames the given file/folder to the new name.

Arguments

1string oldFileName
the current/old fileName
2string newFileName
the new fileName to rename it into
3string gamePath = DATA
game path to use

Returns

1boolean renamed
Returns true if the file/folder was renamed