eric7/Documentation/Source/eric7.Utilities.MimeTypes.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Utilities.MimeTypes</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Utilities.MimeTypes</h1>
24
25 <p>
26 Module implementing mimetype dependent functions.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36 <tr><td>None</td></tr>
37 </table>
38 <h3>Functions</h3>
39
40 <table>
41
42 <tr>
43 <td><a href="#isTextFile">isTextFile</a></td>
44 <td>Function to test, if the given file is a text (i.e.</td>
45 </tr>
46 <tr>
47 <td><a href="#mimeType">mimeType</a></td>
48 <td>Function to get the mime type of a file.</td>
49 </tr>
50 </table>
51 <hr />
52 <hr />
53 <a NAME="isTextFile" ID="isTextFile"></a>
54 <h2>isTextFile</h2>
55 <b>isTextFile</b>(<i>filename</i>)
56
57 <p>
58 Function to test, if the given file is a text (i.e. editable) file.
59 </p>
60 <dl>
61
62 <dt><i>filename</i> (str)</dt>
63 <dd>
64 name of the file to be checked
65 </dd>
66 </dl>
67 <dl>
68 <dt>Return:</dt>
69 <dd>
70 flag indicating an editable file
71 </dd>
72 </dl>
73 <dl>
74 <dt>Return Type:</dt>
75 <dd>
76 bool
77 </dd>
78 </dl>
79 <div align="right"><a href="#top">Up</a></div>
80 <hr />
81 <hr />
82 <a NAME="mimeType" ID="mimeType"></a>
83 <h2>mimeType</h2>
84 <b>mimeType</b>(<i>filename</i>)
85
86 <p>
87 Function to get the mime type of a file.
88 </p>
89 <dl>
90
91 <dt><i>filename</i> (str)</dt>
92 <dd>
93 name of the file to be checked
94 </dd>
95 </dl>
96 <dl>
97 <dt>Return:</dt>
98 <dd>
99 mime type of the file
100 </dd>
101 </dl>
102 <dl>
103 <dt>Return Type:</dt>
104 <dd>
105 str
106 </dd>
107 </dl>
108 <div align="right"><a href="#top">Up</a></div>
109 <hr />
110 </body></html>

eric ide

mercurial