def run(self):
        # check folder_id
        if self.folder_id:
            if self.if_folder_writable() == False:
                raise Exception(
                    "folder_id doesn't exist or insufficient permission: %s" %
                    self.folder_id)

        try:
            result = getattr(self, self.target_type + "_put")()
        except __HOLE__ as e:
            logger.error(e)
            raise
        except Exception as e:
            logger.error(e)
            raise

        return result
dataset/ETHPy150Open tienfuc/gdcmdtools/gdcmdtools/put.py/GDPut.run