def makeDir(self, path):
        d = os.path.dirname(path)
        shortPath = d[:-3]

        for _dir in (shortPath, d):
            try:
                os.mkdir(_dir)
            except __HOLE__, e:
                if e.errno != errno.EEXIST:
                    raise

    # file should be a python file object seek'd to the beginning
    # this messes up the file pointer
dataset/ETHPy150Open sassoftware/conary/conary/repository/datastore.py/DataStore.makeDir