Windows: get owner and group of a file

Tim Golden Tim.Golden at viacom-outdoor.co.uk
Wed Dec 6 09:56:54 EST 2006


[Duncan Booth]

| You can get the owner by doing os.popen('dir /q') and parsing 
| the output, but it is a string not a number (which I guess is why 
| stat/lstat can't return a value). 

Good one; I'd forgotten about that. However, I don't know
if the OP's restriction against popen ("ls- l") extends to
popen ("dir /q") !

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list