def METHOD_NAME(self, path):
    assert self.nommap
    if path not in self.file_map:
        file = open(path, "rb+" if self.write else "rb")
        self.file_map[path] = file
    return self.file_map[path]