Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mastro35
Created February 27, 2017 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastro35/8f55e87811c05ccdc5a860058d950354 to your computer and use it in GitHub Desktop.
Save mastro35/8f55e87811c05ccdc5a860058d950354 to your computer and use it in GitHub Desktop.
def getattr(self, path, fh=None):
full_path = self._full_path(path)
st = os.lstat(full_path)
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', 'st_blocks'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment