Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toDBusMenuModel :: (MonadIO m, IsDBusMenuModel o) => o -> m DBusMenuModelgi-gio GI.Gio.Objects.DBusMenuModel Cast to DBusMenuModel, for types for which this is known to be safe. For general casts, use castTo.
module GI.Gio.Objects.
FileEnumerator GFileEnumerator allows you to operate on a set of File objects, returning a FileInfo structure for each file enumerated (e.g. fileEnumerateChildren will return a GFileEnumerator for each of the children within a directory). To get the next file's information from a GFileEnumerator, use fileEnumeratorNextFile or its asynchronous version, fileEnumeratorNextFilesAsync. Note that the asynchronous version will return a list of FileInfo objects, whereas the synchronous will only return the next file in the enumerator. The ordering of returned files is unspecified for non-Unix platforms; for more information, see dirReadName. On Unix, when operating on local files, returned files will be sorted by inode number. Effectively you can assume that the ordering of returned files will be stable between successive calls (and applications) assuming the directory is unchanged. If your application needs a specific ordering, such as by name or modification time, you will have to implement that in your application code. To close a GFileEnumerator, use fileEnumeratorClose, or its asynchronous version, fileEnumeratorCloseAsync. Once a GFileEnumerator is closed, no further actions may be performed on it, and it should be freed with objectUnref.
-
gi-gio GI.Gio.Objects.FileEnumerator Memory-managed wrapper type.
FileEnumerator :: ManagedPtr FileEnumerator -> FileEnumeratorgi-gio GI.Gio.Objects.FileEnumerator No documentation available.
class (GObject o, IsDescendantOf FileEnumerator o) =>
IsFileEnumerator ogi-gio GI.Gio.Objects.FileEnumerator Type class for types which can be safely cast to FileEnumerator, for instance with toFileEnumerator.
-
gi-gio GI.Gio.Objects.FileEnumerator Construct a GValueConstruct with valid value for the “container” property. This is rarely needed directly, but it is used by new.
-
gi-gio GI.Gio.Objects.FileEnumerator Releases all resources used by this enumerator, making the enumerator return IOErrorEnumClosed on all calls. This will be automatically called when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.
-
gi-gio GI.Gio.Objects.FileEnumerator Asynchronously closes the file enumerator. If cancellable is not Nothing, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be returned in fileEnumeratorCloseFinish.
-
gi-gio GI.Gio.Objects.FileEnumerator Finishes closing a file enumerator, started from fileEnumeratorCloseAsync. If the file enumerator was already closed when fileEnumeratorCloseAsync was called, then this function will report IOErrorEnumClosed in error, and return False. If the file enumerator had pending operation when the close operation was started, then this function will report IOErrorEnumPending, and return False. If cancellable was not Nothing, then the operation may have been cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be set, and False will be returned.
-
gi-gio GI.Gio.Objects.FileEnumerator Return a new File which refers to the file named by info in the source directory of enumerator. This function is primarily intended to be used inside loops with fileEnumeratorNextFile. To use this, FILE_ATTRIBUTE_STANDARD_NAME must have been listed in the attributes list used when creating the FileEnumerator. This is a convenience method that's equivalent to:
C code
gchar *name = g_file_info_get_name (info); GFile *child = g_file_get_child (g_file_enumerator_get_container (enumr), name);
Since: 2.36