public function move(File $to): File {
		$this->manager->move(
			$this->getUrl(),
			Paths::appendPath($to->getUrl(), $this->getName())
		);

		return new File(Paths::appendPath($this->getUrl(), $this->getName()));
	}
public function move(File $to): File {
		$this->manager->move(
			$this->getUrl(),
			Paths::appendPath($to->getUrl(), $this->getName())
		);

		return new File(Paths::appendPath($this->getUrl(), $this->getName()));
	}
public function move ( File $ to ) : File { $ this -> manager -> move ( $ this -> getUrl ( ) , Paths :: appendPath ( $ to -> getUrl ( ) , $ this -> getName ( ) ) ) ; return new File ( Paths :: appendPath ( $ this -> getUrl ( ) , $ this -> getName ( ) ) ) ; }
move file to other directory

@param File $to new place

@return $this|File
move file to other directory