def getPlayerPath(self, player, dim=0):
        '''
        Gets the file path to the player file
        
        :param player: The UUID of the player
        :type player: str
        :param dim: The dimension that the player resides in
        :type dim: int
        :return: The file path to the player data file
        :rtype: str
        '''
        assert player != "Player"
        if dim != 0:
            return os.path.join(os.path.dirname(self.level.filename), "DIM%s" % dim, "playerdata", "%s.dat" % player)
        else:
            return os.path.join(self.playersFolder, "%s.dat" % player)

        Gets the file path to the player file
        
        :param player: The UUID of the player
        :type player: str
        :param dim: The dimension that the player resides in
        :type dim: int
        :return: The file path to the player data file
        :rtype: str
        
pymclevel/infiniteworld.py