moveByRenaming

fun moveByRenaming(file: File, dir: File): File?

Moves a file to specified directory, renaming method is used. See File.renameTo.

Parameters

file

The file that will be moved.

dir

The destination directory.