aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/rcs.py
blob: 0da1513c31d7958266de886d37112f3128a4a2e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from arch import *
def mkdir(path):
    os.mkdir(path)
    add_id(path)

def set_file_contents(path, contents):
    add = not os.path.exists(path)
    file(path, "wb").write(contents)
    if add:
        add_id(path)

def unlink(path):
    os.unlink(path)
    delete_id(filename)