====== move ====== {#JAPI Joomla.Framework FileSystem JFolder::move #} Moves a folder. This function uses FTP if enabled, otherwise, it will use the built in PHP functions. This function returns true on success, false otherwise. ===== Syntax ===== mixed move ( **$src**, **$dest**, **$path** ) | **$src** | string | is a string containing the path to the source folder. | | **$dest** | string | is a string containing the path to the destination folder. | | **$path** | string | is an optional string containing a base path to prefix to the file names. | ===== Examples ===== In this example a folder called 'myfolder/oldsubfolder' in the Joomla! root folder is moved (together with its contents) to 'myfolder/newsubfolder'. jimport( 'joomla.filesystem.folder' ); global $mainframe; if (JFolder::move( 'oldsubfolder', 'newsubfolder', $mainframe->getCfg( 'absolute_path' ) . '/myfolder/' )) { echo "Folder moved!"; } else { echo "Could not move folder!"; } might produce: Folder moved! ---- ~~DISCUSSION~~