query_file_type


Description:

public FileType query_file_type (FileQueryInfoFlags flags, Cancellable? cancellable = null)

Utility function to inspect the FileType of a file.

This is implemented using 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:

this

input File

flags

a set of FileQueryInfoFlags passed to query_info

cancellable

optional Cancellable object, null to ignore

Returns:

The FileType of the file and UNKNOWN if the file does not exist