def METHOD_NAME (self, path, flags=READ, ttype=None) :
    """
    open(path, flags=READ)
    Open a file in the directory instance namespace. Returns
    a new file object.
    :param path:     The name/path of the file to open
    :type path:      str()
    :param flags:    :ref:`filesystemflags`
    """
    if  not flags : flags = 0
    return self._adaptor.METHOD_NAME (path, flags, ttype=ttype)