fs.renameΒΆ

boolean success fs.rename ( string old , string new )

Rename a file or directory, new name must not exist

Arguments:

  • old the path to the file/directory to be renamed
  • new the path to the new path

Return:

  • success true if the file was successfully renamed