move


Description:

[ Version ( since = "0.17.0" ) ]
public bool move (string src, string dest) throws Error

Move / rename a file or a directory.

If the destination exists: - if it is a non-empty directory, an error is returned - otherwise, if it has the same type as the source, it is replaced - otherwise, behavior is unspecified (implementation-dependent).

Parameters:

this

A FileSystem.

src

The path of the source file.

dest

The path of the destination.

Returns:

true on success, false if there was an error.