TwistPHP Documentation

rename

File path: dist/twist/Core/Models/FTP/Native.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
$resNative = new \Twist\Core\Models\FTP\Native();
$resNative -> rename($strFilename$strNewFilename);