:right-sidebar: True FileType =================================================================== .. currentmodule:: gi.repository.Gio .. class:: FileType :no-contents-entry: Indicates the file's on-disk type. On Windows systems a file will never have :const:`~gi.repository.Gio.FileType.SYMBOLIC_LINK` type; use :obj:`~gi.repository.Gio.FileInfo` and :const:`~gi.repository.Gio.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. :obj:`~gi.repository.Gio.FileType` enumeration cannot precisely represent this important distinction, which is why all Windows symlinks will continue to be reported as :const:`~gi.repository.Gio.FileType.REGULAR` or :const:`~gi.repository.Gio.FileType.DIRECTORY`. Fields ------ .. rst-class:: interim-class .. class:: FileType :no-index: .. attribute:: DIRECTORY The type of the None singleton. .. attribute:: MOUNTABLE The type of the None singleton. .. attribute:: REGULAR The type of the None singleton. .. attribute:: SHORTCUT The type of the None singleton. .. attribute:: SPECIAL The type of the None singleton. .. attribute:: SYMBOLIC_LINK The type of the None singleton. .. attribute:: UNKNOWN The type of the None singleton.