@plug.handler()
def move_file(old_metadata, new_metadata):
    plug.logger.debug(u"Moving file {} to {}",
                      old_metadata.path, new_metadata.path)
    try:
        create_file_subdirs(sftp, new_metadata.path)
        sftp.rename(old_metadata.path, new_metadata.path)
    except __HOLE__ as ioe:
        raise ServiceError(u"Error while moving file {} to {}: {}"
                           .format(old_metadata.path, new_metadata.path, ioe))
dataset/ETHPy150Open onitu/onitu/drivers/sftp/onitu_sftp/sftp.py/move_file