code: def from_path(cls, path):
          
          stat_res = os.stat(path)
          return cls.from_int(stat.S_IMODE(stat_res.st_mode))
docs: Make a new :class:`FilePerms` object based on the permissions
          assigned to the file or directory at *path*.
  
          Args:
              path (str): Filesystem path of the target file.
  
          >>> from os.path import expanduser
          >>> 'r' in FilePerms.from_path(expanduser('~')).user  # probably
          True