'Write data to a file.
Override in subclasses to e.g. provide transparently encrypted dirdbm.'

def _writeFile(self, path, data):

    with _open(path.path, 'wb') as f:
        f.write(data)
        f.flush()
