def getPermissions(self):
        st = self.statinfo
        if not st:
            self.restat()
            st = self.statinfo
        return Permissions(S_IMODE(st.st_mode))
Returns the permissions of the file.  Should also work on Windows,
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/filepath.py/FilePath.getPermissions