File.queryFileType

Utility function to inspect the #GFileType of a file. This is implemented using gio.file.File.queryInfo 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 gio.types.FileQueryInfoFlags

a set of #GFileQueryInfoFlags passed to gio.file.File.queryInfo

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore

Return Value

Type: gio.types.FileType

The #GFileType of the file and gio.types.FileType.Unknown if the file does not exist