FileEnumerator
Object Hierarchy:
Description:
Namespace: GLib
Package: gio-2.0
Content:
Properties:
Creation methods:
Methods:
-
public bool close (Cancellable? cancellable = null) throws Error
Releases all resources used by this enumerator, making the enumerator return
CLOSED on all calls.
-
public virtual async bool close_async (int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error
Asynchronously closes the file enumerator.
-
public virtual bool close_fn (Cancellable? cancellable = null) throws Error
-
public weak File get_container ()
Get the File container which is being enumerated.
-
public bool has_pending ()
Checks if the file enumerator has pending operations.
-
public bool is_closed ()
Checks if the file enumerator has been closed.
-
public virtual FileInfo next_file (Cancellable? cancellable = null) throws Error
Returns information for the next file in the enumerated object. Will block until the information is
available. The FileInfo returned from this function will contain attributes that match
the attribute string that was passed when the FileEnumerator was created.
-
public virtual async List<FileInfo> next_files_async (int num_files, int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error
Request information for a number of files from the enumerator asynchronously. When all i/o for the
operation is finished the callback will be called with the requested information.
-
public void set_pending (bool pending)
Sets the file enumerator as having pending operations.