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