FileInfo.getFileType

gio.types.FileType getFileType()

Gets a file's type (whether it is a regular file, symlink, etc). This is different from the file's content type, see [gio.file_info.FileInfo.getContentType].

It is an error to call this if the #GFileInfo does not contain [gio.types.FILE_ATTRIBUTE_STANDARD_TYPE].

Returns

a #GFileType for the given file.