Пример #1
0
def maketemp():
    tmp = os.path.join(os.path.dirname(__file__), 'tmp')
    mkdir(tmp)

    name = find_test_name()
    tmp = os.path.join(tmp, name)
    try:
        shutil.rmtree(tmp)
    except OSError, e:
        if e.errno == errno.ENOENT:
            pass
        else:
            raise
Пример #2
0
def create(path):
    mkdir(path, 0700)
    mkdir(os.path.join(path, 'new'), 0700)
    mkdir(os.path.join(path, 'cur'), 0700)
    mkdir(os.path.join(path, 'tmp'), 0700)