public function move($destination) {
		$destination = $this->getDestination($destination);

		if (@rename($this->getPathname(), $destination)) {
			$this->pathname = $destination;
		} else {
			throw new FileException(sprintf('Failed to move %s to %s', $this->pathname, $destination));
		}
	}
public function move($destination) {
		$destination = $this->getDestination($destination);

		if (@rename($this->getPathname(), $destination)) {
			$this->pathname = $destination;
		} else {
			throw new FileException(sprintf('Failed to move %s to %s', $this->pathname, $destination));
		}
	}
public function move ( $ destination ) { $ destination = $ this -> getDestination ( $ destination ) ; if ( @ rename ( $ this -> getPathname ( ) , $ destination ) ) { $ this -> pathname = $ destination ; } else { throw new FileException ( sprintf ( 'Failed to move %s to %s' , $ this -> pathname , $ destination ) ) ; } }
Moves the file

@throws FileException When an error appeared.
@param string|Path $destination
Moves the file