Home ⌂Doc Index ◂Up ▴

eric6.Utilities.MimeTypes

Module implementing mimetype dependent functions.

Global Attributes

None

Classes

None

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)
Up


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)
Up



Home ⌂Doc Index ◂Up ▴