Xdp.Portal.open_directory

### Method

# Xdp Portalopen_directory

#### Declaration [src]

    void
    xdp_portal_open_directory (
      XdpPortal* portal,
      XdpParent* parent,
      const char* uri,
      XdpOpenUriFlags flags,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer data
    )

#### Description [src]

Opens the directory containing the file specified by the `uri`.

which must be a file: uri pointing to a file that the application has access to.

This method completes asynchronously. Use `xdp_portal_open_directory_finish()` inside the `GAsyncReadyCallback` to obtain the result of the operation.

#### Parameters

`parent`

  Type: `XdpParent`

  Parent window information.

  The data is owned by the caller of the method.

`uri`

  Type: `const char*`

  The URI to open.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`flags`

  Type: `XdpOpenUriFlags`

  Options for this call.

`cancellable`

  Type: `GCancellable`

  Optional `GCancellable`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`callback`

  Type: `GAsyncReadyCallback`

  A callback to call when the request is done.

  The argument can be `NULL`.

`data`

  Type: `gpointer`

  Data to pass to `callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.