def rename(self, path, raise_if_exists=False):
        if isinstance(path, HdfsTarget):
            path = path.path
        if raise_if_exists and self.fs.exists(path):
            raise RuntimeError('Destination exists: %s' % path)
        self.fs.rename(self.path, path)
Does not change self.path.
dataset/ETHPy150Open spotify/luigi/luigi/contrib/hdfs/target.py/HdfsTarget.rename