I'm interested in getting more information from a file using python.
I know that using os.stat (such as below) returns information on the file, but I'd like to get other attributes from the file such as 'Where from?'
os.stat(filename)
posix.stat_result(st_mode=33184, st_ino=131691855, st_dev=16777220L, st_nlink=1, st_uid=501, st_gid=20, st_size=174241, st_atime=1445046864, st_mtime=1445045836, st_ctime=1445045836)
However, these aren't the attributes I'm interested. I'm interested in getting all of the below attributes (in particular 'Where from')
How can I get the 'Where from' field?
I've tried using os.access, but that doesn't return what I want, and have been searching the documentation on os, so I'm not sure what else I can try.
My example:
looks like there is a package called
xattr
doesnt look bad.. (you need topip install xattr
it)More research lead me to
biplist
module. (you need topip install biplist
it)DONE!