'List files installed on the system by package [name].
:param name: Package name.'

def list_files(self, name):

    path = os.path.abspath(name)
    if os.path.isfile(path):
        option = '-qlp'
        name = path
    else:
        option = '-ql'
    l_cmd = ((((('rpm' + '    ') + option) + '    ') + name) + '    2>    /dev/null')
    try:
        result = utils.system_output(l_cmd)
        list_files = result.split('\n')
        return list_files
    except error.CmdError:
        return []
