def move(self, from_path, to_hdfs, to_path):
_complain_ifclosed(self.closed)<EOL>if isinstance(to_hdfs, self.__class__):<EOL><INDENT>to_hdfs = to_hdfs.fs<EOL><DEDENT>return self.fs.move(from_path, to_hdfs, to_path)<EOL>
Move file from one filesystem to another.

:type from_path: str
:param from_path: the path of the source file
:type from_hdfs: :class:`hdfs`
:param to_hdfs: destination filesystem
:type to_path: str
:param to_path: the path of the destination file
:raises: :exc:`~exceptions.IOError`