eric6.Utilities.MimeTypes
Module implementing mimetype dependent functions.
Global Attributes
Classes
Functions
isTextFile |
Function to test, if the given file is a text (i.e. |
mimeType |
Function to get the mime type of a file. |
isTextFile
isTextFile(filename)
Function to test, if the given file is a text (i.e. editable) file.
- filename
-
name of the file to be checked (string)
- Returns:
-
flag indicating an editable file (boolean)
mimeType
mimeType(filename)
Function to get the mime type of a file.
- filename
-
name of the file to be checked (string)
- Returns:
-
mime type of the file (string)