Function

Ideg_file_walk_with_ignore

Declaration

void
ide_g_file_walk_with_ignore (
  GFile* directory,
  const gchar* attributes,
  const gchar* ignore_file,
  GCancellable* cancellable,
  IdeFileWalkCallback callback,
  gpointer callback_data
)

Description

Calls callback for every directory starting from directory.

All of the fileinfo for the directory will be provided to the callback for each directory.

If ignore_file is set, this function will check to see if that file exists within directory and skip it (and all descendants) if discovered.

Parameters

directory

Type: GFile

A GFile that is a directory.

The data is owned by the caller of the function.
attributes

Type: const gchar*

Attributes to include in GFileInfo.

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

Type: const gchar*

The filename within directory to indicate that the directory should be ignored.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cancellable

Type: GCancellable

An optional cancellable.

The argument can be NULL.
The data is owned by the caller of the function.
callback

Type: IdeFileWalkCallback

A callback for each directory starting from the directory.

callback_data

Type: gpointer

Closure data for callback.

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