move function
Moves the file from
to the location to
.
createDir('/tmp/folder');
move('/tmp/fred.txt', '/tmp/folder/tom.txt');
from
must be a file.
to
may be a file or a path.
If to
is a file then a rename occurs.
if to
is a path then from
is moved to the given path.
If the move fails for any reason a MoveException is thrown.
Implementation
void move(String from, String to, {bool overwrite = false}) => waitForEx(
// ignore: discarded_futures
core.move(from, to, overwrite: overwrite));