public function move($filename, $pathTo, $pathFrom = null)
    {
        if ($pathFrom==null) {
            $pathFrom=$this->_filePath;
        }
        if (file_exists($pathFrom."/".$filename)) {
            $this->createDir($pathTo);
            return rename($pathFrom."/".$filename, $pathTo."/".$filename);
        } else {
            return null;
        }
    }
public function move($filename, $pathTo, $pathFrom = null)
    {
        if ($pathFrom==null) {
            $pathFrom=$this->_filePath;
        }
        if (file_exists($pathFrom."/".$filename)) {
            $this->createDir($pathTo);
            return rename($pathFrom."/".$filename, $pathTo."/".$filename);
        } else {
            return null;
        }
    }
public function move ( $ filename , $ pathTo , $ pathFrom = null ) { if ( $ pathFrom == null ) { $ pathFrom = $ this -> _filePath ; } if ( file_exists ( $ pathFrom . "/" . $ filename ) ) { $ this -> createDir ( $ pathTo ) ; return rename ( $ pathFrom . "/" . $ filename , $ pathTo . "/" . $ filename ) ; } else { return null ; } }
Move a file

@param string $filename
@param string $pathTo
@param string $pathToFrom
@return bool
Move a file