def owner(path):
    if not os.path.exists(path):
        raise ResourceException('File does not exist.')

    si = os.stat(path)
    uid = si.st_uid
    try:
        return pwd.getpwuid(uid).pw_name
    except __HOLE__ as err:
        raise ResourceException(err)
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/files-plugin/unix-files.py/owner