I'm following this tutorial on FUSE.
[FUSE tutorial][1]
And following is the documentation of FUSE
This might be more python related problem but I am unable to figure out. This is the method in the tutorial
def getattr(self, path, fh=None):
print "getattr"
full_path = self._full_path(path)
# print full_path
st = os.lstat(full_path)
print key
return dict((key, getattr(st, key)) for key in ('st_atime', 'st_ctime',
'st_gid', 'st_mode', 'st_mtime', 'st_nlink', 'st_size', 'st_uid'))
I understand the purpose of this method and it is working fine. But I'm unable to comprehend where this key is coming from. Tried printing it but it gave an error (as expected).