public function moveToDir($dir, $mode=null) {
		if($this->isIn($dir))
			return;
		return $this->rename($dir.'/'.$this->getName(), $mode);
	}
public function moveToDir($dir, $mode=null) {
		if($this->isIn($dir))
			return;
		return $this->rename($dir.'/'.$this->getName(), $mode);
	}
public function moveToDir ( $ dir , $ mode = null ) { if ( $ this -> isIn ( $ dir ) ) return ; return $ this -> rename ( $ dir . '/' . $ this -> getName ( ) , $ mode ) ; }
Move the file to a directory.
@param  string $dir
@param  integer $mode
@return boolean     return the new file path.
Move the file to a directory .