Enumeration (GI Enum)

Gio-2.0GioFileType

Indicates the file's on-disk type.

On Windows systems a file will never have Gio.FileType.SYMBOLIC_LINK type; use Gio.FileInfo 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. Gio.FileType enumeration cannot precisely represent this important distinction, which is why all Windows symlinks will continue to be reported as Gio.FileType.REGULAR or Gio.FileType.DIRECTORY.

Index
DIRECTORY: 2

File handle represents a directory.

MOUNTABLE: 6

File is a mountable location.

REGULAR: 1

File handle represents a regular file.

SHORTCUT: 5

File is a shortcut (Windows systems).

SPECIAL: 4

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

SYMBOLIC_LINK: 3

File handle represents a symbolic link (Unix systems).

UNKNOWN: 0

File's type is unknown.

Variables

$gtype