TwistPHP Documentation

rename

File path: dist/twist/Core/Models/FTP/Socket.model.php
Namespace: Twist\Core\Models\FTP
Extends:

renameRename a directory or file to a new name

Parameters

Name Type Description
$strFilenamestringn/a
$strNewFilenamestringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strFilename 'foo';
$strNewFilename 'foo';

//Call the function rename with the example vars
$resSocket = new \Twist\Core\Models\FTP\Socket();
$resSocket -> rename($strFilename$strNewFilename);