rename


Description:

[ Version ( since = "1.21.5" ) ]
public bool rename (string oldpath, string newpath) throws Error

rename a file on the same filesystem

Rename a file to a new place on the same filesystem. This is the same as the Linux rename(2) system call. In most cases you are better to use mv instead.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error