Documentation for method move

Documentation for method move, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) routine move

method move(IO::Path:D: $to:$createonly)
sub    move($from$to:$createonly)

Moves a file. Both $from (the file to be moved) and $to (the destination) can take arbitrary paths. If :createonly is set to True, the move fails if a file already exists in the destination. Returns True upon success, or fails with X::IO::Move if the operation could not be completed.

Please use rename if a file can be moved by renaming (which is usually possible if the destination is on the same different physical storage device).