forked from sreekaransrinath/file_organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensiondict.py
157 lines (156 loc) · 4.78 KB
/
extensiondict.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
147
148
149
150
151
152
153
154
155
156
157
def getpath(extension):
return extension_dict[extension]
extension_dict = {
# 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/TextFiles",
'.doc' : "Text/Word",
'.docx' : "Text/Word",
'.odt' : "Text/Word",
'.pdf' : "Text/PDF",
'.rtf' : "Text/TextFiles",
'.tex' : "Text/TextFiles",
'.wks' : "Text/TextFiles",
'.wps' : "Text/TextFiles",
'.wpd' : "Text/TextFiles",
# 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",
'.ico' : "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",
# Compressed
'.7z' : "Other/Compressed",
'.arj' : "Other/Compressed",
'.deb' : "Other/Compressed",
'.pkg' : "Other/Compressed",
'.rar' : "Other/Compressed",
'.rpm' : "Other/Compressed",
'.gz' : "Other/Compressed",
'.xz' : "Other/Compressed",
'.z' : "Other/Compressed",
'.zip' : "Other/Compressed",
'.tgz' : "Other/Compressed",
# Disc
'.bin' : "Other/Disc",
'.dmg' : "Other/Disc",
'.iso' : "Other/Disc",
'.toast' : "Other/Disc",
'.vcd' : "Other/Disc",
# Database
'.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++andC",
'.class' : "Programming/Java",
'.dart' : "Programming/Dart",
'.py' : "Programming/Python",
'.sh' : "Programming/Shell",
'.swift' : "Programming/Swift",
'.html' : "Programming/HTML",
'.h' : "Programming/C++andC",
'.cpp' : "Programming/C++andC",
'.java' : "Programming/Java",
'.m' : "Programming/MATLAB",
# Spreadsheets
'.ods' : "Text/Spreadsheets",
'.xlr' : "Text/Spreadsheets",
'.xls' : "Text/Spreadsheets",
'.xlsx' : "Text/Spreadsheets",
'.numbers':"Text/Spreadsheets",
# 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",
'.ini' : "Text/Other/System",
'.lnk' : "Text/Other/System",
'.msi' : "Text/Other/System",
'.sys' : "Text/Other/System",
'.tmp' : "Text/Other/System"
}