-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexcluded_formats.py
54 lines (48 loc) · 1.14 KB
/
excluded_formats.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
"""
Collection of document file formats or directories to be excluded while moving.
"""
# From: https://fileinfo.com/filetypes/misc
# https://fileinfo.com/filetypes/misc-all
# https://www.webopedia.com/quick_ref/fileextensionsfull.asp
# Specify excluded file formats/directories.
_excluded_formats = {
######################### Common partially downloaded file extensions #########################
".!BT",
".!QB",
".!SYNC"
".!UT",
".ADADOWNLOAD",
".APPDOWNLOAD",
".AZ!",
".BC",
".BC!",
".BT!",
".CRDOWNLOAD",
".DAP",
".DCTMP",
".DE"
".DOWNLOADING",
".DSTUDIO",
".DTAPART",
".E3P"
".FB!",
".JC",
".JC!",
".OB!",
".OPDOWNLOAD",
".PART",
".PARTIAL",
".TD",
".TMP",
".XLX",
######################### Common directory formats #########################
"Telegram Desktop"
}
def excluded_formats():
return _excluded_formats
def add_new_format(new_format: str=""):
''' Add the specified 'new_format' to above exclusion set. '''
if not new_format.strip():
return
global _excluded_formats
_excluded_formats.add(new_format)