1
+ extension_paths = {
2
+ # No name
3
+ 'noname' : 'other/uncategorized' ,
4
+ # audio
5
+ '.aif' : 'media/audio' ,
6
+ '.cda' : 'media/audio' ,
7
+ '.mid' : 'media/audio' ,
8
+ '.midi' : 'media/audio' ,
9
+ '.mp3' : 'media/audio' ,
10
+ '.mpa' : 'media/audio' ,
11
+ '.ogg' : 'media/audio' ,
12
+ '.wav' : 'media/audio' ,
13
+ '.wma' : 'media/audio' ,
14
+ '.wpl' : 'media/audio' ,
15
+ '.m3u' : 'media/audio' ,
16
+ # text
17
+ '.txt' : 'text/text_files' ,
18
+ '.doc' : 'text/microsoft/word' ,
19
+ '.docx' : 'text/microsoft/word' ,
20
+ '.odt ' : 'text/text_files' ,
21
+ '.pdf' : 'text/pdf' ,
22
+ '.rtf' : 'text/text_files' ,
23
+ '.tex' : 'text/text_files' ,
24
+ '.wks ' : 'text/text_files' ,
25
+ '.wps' : 'text/text_files' ,
26
+ '.wpd' : 'text/text_files' ,
27
+ # video
28
+ '.3g2' : 'media/video' ,
29
+ '.3gp' : 'media/video' ,
30
+ '.avi' : 'media/video' ,
31
+ '.flv' : 'media/video' ,
32
+ '.h264' : 'media/video' ,
33
+ '.m4v' : 'media/video' ,
34
+ '.mkv' : 'media/video' ,
35
+ '.mov' : 'media/video' ,
36
+ '.mp4' : 'media/video' ,
37
+ '.mpg' : 'media/video' ,
38
+ '.mpeg' : 'media/video' ,
39
+ '.rm' : 'media/video' ,
40
+ '.swf' : 'media/video' ,
41
+ '.vob' : 'media/video' ,
42
+ '.wmv' : 'media/video' ,
43
+ # images
44
+ '.ai' : 'media/images' ,
45
+ '.bmp' : 'media/images' ,
46
+ '.gif' : 'media/images' ,
47
+ '.jpg' : 'media/images' ,
48
+ '.jpeg' : 'media/images' ,
49
+ '.png' : 'media/images' ,
50
+ '.ps' : 'media/images' ,
51
+ '.psd' : 'media/images' ,
52
+ '.svg' : 'media/images' ,
53
+ '.tif' : 'media/images' ,
54
+ '.tiff' : 'media/images' ,
55
+ '.cr2' : 'media/images' ,
56
+ # internet
57
+ '.asp' : 'other/internet' ,
58
+ '.aspx' : 'other/internet' ,
59
+ '.cer' : 'other/internet' ,
60
+ '.cfm' : 'other/internet' ,
61
+ '.cgi' : 'other/internet' ,
62
+ '.pl' : 'other/internet' ,
63
+ '.css' : 'other/internet' ,
64
+ '.htm' : 'other/internet' ,
65
+ '.js' : 'other/internet' ,
66
+ '.jsp' : 'other/internet' ,
67
+ '.part' : 'other/internet' ,
68
+ '.php' : 'other/internet' ,
69
+ '.rss' : 'other/internet' ,
70
+ '.xhtml' : 'other/internet' ,
71
+ '.html' : 'other/internet' ,
72
+ # compressed
73
+ '.7z' : 'other/compressed' ,
74
+ '.arj' : 'other/compressed' ,
75
+ '.deb' : 'other/compressed' ,
76
+ '.pkg' : 'other/compressed' ,
77
+ '.rar' : 'other/compressed' ,
78
+ '.rpm' : 'other/compressed' ,
79
+ '.tar.gz' : 'other/compressed' ,
80
+ '.z' : 'other/compressed' ,
81
+ '.zip' : 'other/compressed' ,
82
+ # disc
83
+ '.bin' : 'other/disc' ,
84
+ '.dmg' : 'other/disc' ,
85
+ '.iso' : 'other/disc' ,
86
+ '.toast' : 'other/disc' ,
87
+ '.vcd' : 'other/disc' ,
88
+ # data
89
+ '.csv' : 'programming/database' ,
90
+ '.dat' : 'programming/database' ,
91
+ '.db' : 'programming/database' ,
92
+ '.dbf' : 'programming/database' ,
93
+ '.log' : 'programming/database' ,
94
+ '.mdb' : 'programming/database' ,
95
+ '.sav' : 'programming/database' ,
96
+ '.sql' : 'programming/database' ,
97
+ '.tar' : 'programming/database' ,
98
+ '.xml' : 'programming/database' ,
99
+ '.json' : 'programming/database' ,
100
+ # executables
101
+ '.apk' : 'other/executables' ,
102
+ '.bat' : 'other/executables' ,
103
+ '.com' : 'other/executables' ,
104
+ '.exe' : 'other/executables' ,
105
+ '.gadget' : 'other/executables' ,
106
+ '.jar' : 'other/executables' ,
107
+ '.wsf' : 'other/executables' ,
108
+ # fonts
109
+ '.fnt' : 'other/fonts' ,
110
+ '.fon' : 'other/fonts' ,
111
+ '.otf' : 'other/fonts' ,
112
+ '.ttf' : 'other/fonts' ,
113
+ # presentations
114
+ '.key' : 'text/presentations' ,
115
+ '.odp' : 'text/presentations' ,
116
+ '.pps' : 'text/presentations' ,
117
+ '.ppt' : 'text/presentations' ,
118
+ '.pptx' : 'text/presentations' ,
119
+ # programming
120
+ '.c' : 'programming/c&c++' ,
121
+ '.class' : 'programming/java' ,
122
+ '.java' : 'programming/java' ,
123
+ '.py' : 'programming/python' ,
124
+ '.sh' : 'programming/shell' ,
125
+ '.h' : 'programming/c&c++' ,
126
+ # spreadsheets
127
+ '.ods' : 'text/microsoft/excel' ,
128
+ '.xlr' : 'text/microsoft/excel' ,
129
+ '.xls' : 'text/microsoft/excel' ,
130
+ '.xlsx' : 'text/microsoft/excel' ,
131
+ # system
132
+ '.bak' : 'text/other/system' ,
133
+ '.cab' : 'text/other/system' ,
134
+ '.cfg' : 'text/other/system' ,
135
+ '.cpl' : 'text/other/system' ,
136
+ '.cur' : 'text/other/system' ,
137
+ '.dll' : 'text/other/system' ,
138
+ '.dmp' : 'text/other/system' ,
139
+ '.drv' : 'text/other/system' ,
140
+ '.icns' : 'text/other/system' ,
141
+ '.ico' : 'text/other/system' ,
142
+ '.ini' : 'text/other/system' ,
143
+ '.lnk' : 'text/other/system' ,
144
+ '.msi' : 'text/other/system' ,
145
+ '.sys' : 'text/other/system' ,
146
+ '.tmp' : 'text/other/system'
147
+ }
0 commit comments