def save_to(self, destination, name=None, overwrite=False, delete_on_failure=True):
        if not os.path.isdir(destination):
            raise IOError("'%s' is not a valid directory")

        obj_path = "%s/%s" % (destination, self._obj.name)
        if name:
            obj_path = "%s/%s.%s" % (destination, name, self.extension)

        file = self._obj.download(obj_path,
                                  overwrite_existing=overwrite,
                                  delete_on_failure=delete_on_failure)
        return obj_path if file else None
To save the object in a local path
dataset/ETHPy150Open mardix/flask-cloudy/flask_cloudy.py/Object.save_to