def get_owner(self):
if os.name == '<STR_LIT>':<EOL><INDENT>if win32security is None:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>desc = win32security.GetFileSecurity(<EOL>self, win32security.OWNER_SECURITY_INFORMATION)<EOL>sid = desc.GetSecurityDescriptorOwner()<EOL>account, domain, typecode = win32security.LookupAccountSid(None, sid)<EOL>return domain + '<STR_LIT:\\>' + account<EOL><DEDENT>else:<EOL><INDENT>if pwd is None:<EOL><INDENT>raise NotImplementedError("<STR_LIT>")<EOL><DEDENT>st = self.stat()<EOL>return pwd.getpwuid(st.st_uid).pw_name<EOL><DEDENT>
r""" Return the name of the owner of this file or directory.

        This follows symbolic links.

        On Windows, this returns a name of the form ur'DOMAIN\User Name'.
        On Windows, a group can own a file or directory.