def getperms(self): """Return permissions mode, owner and group""" s1 = self.stat return '%s:%s %o' % (s1.st_uid, s1.st_gid, self.mode)