src/Folder.php
public static function move($src, $dest, $overwrite=false)
  {
    $src  = Path::clean($src);
    $dest = Path::clean($dest);
    
    if ( !Folder::exists($src) ){
      throw new Exception(Helper::getTranslation('CANNOT_FIND_SOURCE').' : '.$src);
    }
    
    if ( Folder::exists($dest) ){
      throw new Exception(Helper::getTranslation('ALREADY_EXISTS').' : '.$dest);
    }
    
    $fs = new Filesystem();
    
    try {
      $fs->rename($src, $dest, $overwrite);
    }
    catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_RENAMING').' - ('.$e->getMessage().')');
    }
    
    return true;
  }
public static function move($src, $dest, $overwrite=false)
  {
    $src  = Path::clean($src);
    $dest = Path::clean($dest);
    
    if ( !Folder::exists($src) ){
      throw new Exception(Helper::getTranslation('CANNOT_FIND_SOURCE').' : '.$src);
    }
    
    if ( Folder::exists($dest) ){
      throw new Exception(Helper::getTranslation('ALREADY_EXISTS').' : '.$dest);
    }
    
    $fs = new Filesystem();
    
    try {
      $fs->rename($src, $dest, $overwrite);
    }
    catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_RENAMING').' - ('.$e->getMessage().')');
    }
    
    return true;
  }
Moves a folder.

@param   string    $src          The path to the source folder
@param   string    $dest         The path to the destination folder
@param   bool      $overwrite    Overwrite destination file
@return   boolean   True on success
@throws   Exception