class FileType

The FileType class provides a multi-platform representation of a file type, holding the metadata used by the various platforms to create and recognise files of a particular type. FileType instances are used by the standard file selection dialogs to restrict the list of files displayed, and by the FileRef class to enable creating a file of a specified type.

Properties

suffix
Filename suffix (without dot) used to recognise files of this type. This is the most generic way of specifying a file type, as it works across most platforms.

This property is only used when matching against an existing file, not when creating a new file. It is your responsibility to add a filename suffix if appropriate when creating a file.

mac_creator
On the Macintosh, the 4-character creator code to be given to newly-created files of this type. This property is only used when creating a file, not when matching against the type of an existing file. On other platforms, this property is ignored.

mac_type
On the Macintosh, the 4-character type code. This property is used both when creating a file and matching against the type of an existing file. On other platforms, this property is ignored.
---