You can rename a file using the Sftp#renameFile method providing the current file name and the new file name.
Example
// rename file image.gif to image.gif.old
sftp.renameFile("image.gif","image.gif.old");