4.16 <GFileType>

Enumeration: <GFileType>

Indicates the file’s on-disk type.

On Windows systems a file will never have symbolic-link type; use <GFileInfo> and G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK to determine whether a file is a symlink or not. This is due to the fact that NTFS does not have a single filesystem object type for symbolic links - it has files that symlink to files, and directories that symlink to directories. <GFileType> enumeration cannot precisely represent this important distinction, which is why all Windows symlinks will continue to be reported as regular or directory.

Members

unknown

File’s type is unknown.

regular

File handle represents a regular file.

directory

File handle represents a directory.

symbolic-link

File handle represents a symbolic link (Unix systems).

special

File is a "special" file, such as a socket, fifo, block device, or character device.

shortcut

File is a shortcut (Windows systems).

mountable

File is a mountable location.