move

abstract suspend fun move(source: Path, target: Path)(source)

Moves a file or directory from the source path to the target path.

Parameters

source

The path of the file or directory to be moved.

target

The destination path where the file or directory will be moved.