FileIF.queryFileType

Utility function to inspect the #GFileType of a file. This is implemented using g_file_query_info() and as such does blocking I/O.

The primary use case of this method is to check if a file is a regular file, directory, or symlink.

Parameters

flags GFileQueryInfoFlags

a set of #GFileQueryInfoFlags passed to g_file_query_info()

cancellable Cancellable

optional #GCancellable object, %NULL to ignore

Return: The #GFileType of the file and #G_FILE_TYPE_UNKNOWN if the file does not exist

Meta

Since

2.18