-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.py
More file actions
139 lines (138 loc) · 4.41 KB
/
extension.py
File metadata and controls
139 lines (138 loc) · 4.41 KB
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
#! usr/bin/env python3
extension_paths = {
# 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\\txt',
'.doc': 'text\\microsoft/word',
'.docx': 'text\\microsoft/word',
'.odt ': 'text\\txt',
'.pdf': 'text\\pdf',
'.rtf': 'text\\txt',
'.tex': 'text\\txt',
'.wks ': 'text\\txt',
'.wps': 'text\\txt',
'.wpd': 'text\\txt',
#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',
'.htm': 'other\\internet',
'.jsp': 'other\\internet',
'.part': 'other\\internet',
'.php': 'other\\internet',
'.rss': 'other\\internet',
'.xhtml': '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',
# 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\\microsoft\\powerpoint',
'.odp': 'text\\microsoft\\powerpoint',
'.pps': 'text\\microsoft\\powerpoint',
'.ppt': 'text\\microsoft\\powerpoint',
'.pptx': 'text\\microsoft\\powerpoint',
# programming
'.c': 'programming\\c&c++',
'.html': 'programming\\html&css',
'.css': 'programming\\html&css',
'.py': 'programming\\python',
'.sh': 'programming\\shell',
'.h': 'programming\\c&c++',
'.js': 'programming\\javascript',
# 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'
}