<?php ftp_rename(FTP\Connection $ftp, string $from, string $to): bool
<?php $destinationLocation = $this->prefixer->prefixPath($destination); $connection = $this->connection(); if ( ! @ftp_rename($connection, $sourceLocation, $destinationLocation)) { throw UnableToMoveFile::fromLocationTo($source, $destination); } }