16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Utilities.MimeTypes</h1> |
23 <h1>eric6.Utilities.MimeTypes</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing mimetype dependent functions. |
26 Module implementing mimetype dependent functions. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
32 <tr><td>None</td></tr> |
36 <tr><td>None</td></tr> |
33 </table> |
37 </table> |
34 <h3>Functions</h3> |
38 <h3>Functions</h3> |
|
39 |
35 <table> |
40 <table> |
|
41 |
36 <tr> |
42 <tr> |
37 <td><a href="#isTextFile">isTextFile</a></td> |
43 <td><a href="#isTextFile">isTextFile</a></td> |
38 <td>Function to test, if the given file is a text (i.e.</td> |
44 <td>Function to test, if the given file is a text (i.e.</td> |
39 </tr><tr> |
45 </tr> |
|
46 <tr> |
40 <td><a href="#mimeType">mimeType</a></td> |
47 <td><a href="#mimeType">mimeType</a></td> |
41 <td>Function to get the mime type of a file.</td> |
48 <td>Function to get the mime type of a file.</td> |
42 </tr> |
49 </tr> |
43 </table> |
50 </table> |
44 <hr /><hr /> |
51 <hr /> |
|
52 <hr /> |
45 <a NAME="isTextFile" ID="isTextFile"></a> |
53 <a NAME="isTextFile" ID="isTextFile"></a> |
46 <h2>isTextFile</h2> |
54 <h2>isTextFile</h2> |
47 <b>isTextFile</b>(<i>filename</i>) |
55 <b>isTextFile</b>(<i>filename</i>) |
|
56 |
48 <p> |
57 <p> |
49 Function to test, if the given file is a text (i.e. editable) file. |
58 Function to test, if the given file is a text (i.e. editable) file. |
50 </p><dl> |
59 </p> |
|
60 <dl> |
|
61 |
51 <dt><i>filename</i></dt> |
62 <dt><i>filename</i></dt> |
52 <dd> |
63 <dd> |
53 name of the file to be checked (string) |
64 name of the file to be checked (string) |
54 </dd> |
65 </dd> |
55 </dl><dl> |
66 </dl> |
|
67 <dl> |
56 <dt>Returns:</dt> |
68 <dt>Returns:</dt> |
57 <dd> |
69 <dd> |
58 flag indicating an editable file (boolean) |
70 flag indicating an editable file (boolean) |
59 </dd> |
71 </dd> |
60 </dl> |
72 </dl> |
61 <div align="right"><a href="#top">Up</a></div> |
73 <div align="right"><a href="#top">Up</a></div> |
62 <hr /><hr /> |
74 <hr /> |
|
75 <hr /> |
63 <a NAME="mimeType" ID="mimeType"></a> |
76 <a NAME="mimeType" ID="mimeType"></a> |
64 <h2>mimeType</h2> |
77 <h2>mimeType</h2> |
65 <b>mimeType</b>(<i>filename</i>) |
78 <b>mimeType</b>(<i>filename</i>) |
|
79 |
66 <p> |
80 <p> |
67 Function to get the mime type of a file. |
81 Function to get the mime type of a file. |
68 </p><dl> |
82 </p> |
|
83 <dl> |
|
84 |
69 <dt><i>filename</i></dt> |
85 <dt><i>filename</i></dt> |
70 <dd> |
86 <dd> |
71 name of the file to be checked (string) |
87 name of the file to be checked (string) |
72 </dd> |
88 </dd> |
73 </dl><dl> |
89 </dl> |
|
90 <dl> |
74 <dt>Returns:</dt> |
91 <dt>Returns:</dt> |
75 <dd> |
92 <dd> |
76 mime type of the file (string) |
93 mime type of the file (string) |
77 </dd> |
94 </dd> |
78 </dl> |
95 </dl> |