Learn R Programming

RGtk2 (version 2.20.31)

gFileQueryFileType: gFileQueryFileType

Description

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

Usage

gFileQueryFileType(object, flags, cancellable = NULL)

Arguments

object
input GFile.
flags
cancellable
optional GCancellable object, NULL to ignore.

Value

GFileType] The GFileType of the file and G_FILE_TYPE_UNKNOWN if the file does not exist

Details

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