GFileType

Indicates the file's on-disk type.

On Windows systems a file will never have gio.types.FileType.SymbolicLink 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 gio.types.FileType.Regular or gio.types.FileType.Directory.

Values

ValueMeaning
Unknown0

File's type is unknown.

Regular1

File handle represents a regular file.

Directory2

File handle represents a directory.

Special4

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

Shortcut5

File is a shortcut (Windows systems).

Mountable6

File is a mountable location.