CI_FTP::rename()

rename($old_file, $new_file[, $move = FALSE])

Parameters:
  • $old_file (string) – Old file name
  • $new_file (string) – New file name
  • $move (bool) – Whether a move is being performed
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Permits you to rename a file. Supply the source file name/path and the new file name/path.

// Renames green.html to blue.html
$this->ftp->rename('/public_html/foo/green.html', '/public_html/foo/blue.html');
doc_CodeIgniter
2016-10-15 16:31:36
Comments
Leave a Comment

Please login to continue.