есть код:
import win32api, win32con, win32security, os, sys
def get_owner_file (file_name):
sd = win32security.GetFileSecurity (file_name, win32security.OWNER_SECURITY_INFORMATION)
owner_sid = sd.GetSecurityDescriptorOwner ()
name, domain, type = win32security.LookupAccountSid (None, owner_sid)
owner = '%s\\%s'%(domain, name)
return (owner)
directory = 'c:\\temp'
for filename in os.listdir (directory):
file_name = os.path.join (directory, filename)
print file_name, get_owner_file(file_name)
Всем спасибо.