def __init__(self, filename):
        if not os.path.exists(filename):
            os.mkdir(filename)

        elif not os.path.isdir(filename):
            raise IOError, "AnvilWorldFolder: Not a folder: %s" % filename

        self.filename = filename
        self.regionFiles = {}

    # --- File paths ---
dataset/ETHPy150Open mcedit/pymclevel/infiniteworld.py/AnvilWorldFolder.__init__/original