list_files


Description:

public Collection<File>? list_files (File directory, bool include_subdirs = true, Cancellable? cancellable = null) throws Error

Lists all the files contained within the given parent directory.

Parameters:

directory

the GLib.File parent directory

include_subdirs

whether or not to include files found within sub-directories

cancellable

the optional GLib.Cancellable

Returns:

A new collection of GLib.File objects for each child file of the directory, or null if invoked on a file which is not a directory.

Exceptions:

GLib.Error

if an error occurs while enumerating the children


Namespace: Catalyst.FileUtils
Package: catalyst-1