'Returns the permissions of the file.  Should also work on Windows,
however, those permissions may not be what is expected in Windows.
@return: the permissions for the file
@rtype: L{Permissions}
@since: 11.1'

def getPermissions(self):

    st = self._statinfo
    if (not st):
        self.restat()
        st = self._statinfo
    return Permissions(S_IMODE(st.st_mode))
