I'm using windows machine and python 3. I'm trying to get the user id from windows files:
import os
os.stat('filepath').st_uid
However this only returns st_uid = 0 which doesn't make sense.
Can someone please help? If I can't use st_uid, what else I can use to obtain the file user info?
Thanks!
Update: Thanks for the help guys. I end up using windows security API to obtain user information: