CI_FTP::move()

move($old_file, $new_file)

Parameters:
  • $old_file (string) – Old file name
  • $new_file (string) – New file name
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Lets you move a file. Supply the source and destination paths:

// Moves blog.html from "joe" to "fred"
$this->ftp->move('/public_html/joe/blog.html', '/public_html/fred/blog.html');

Note

If the destination file name is different the file will be renamed.

doc_CodeIgniter
2016-10-15 16:31:36
Comments
Leave a Comment

Please login to continue.