'Read in the contents of a file.
Override in subclasses to e.g. provide transparently encrypted dirdbm.'

def _readFile(self, path):

    with _open(path.path, 'rb') as f:
        s = f.read()
    return s
