/ constants.py
constants.py
1 # The program will match each included or excluded file 2 # by both programmatically finding the file type as well 3 # as through inspecting the file extension, if either 4 # match, then there is a match. 5 # --- 6 # To programmatically find the file type the program will 7 # either use the filetype module or it will use subprocess.Popen() 8 # or os.system() to run the shell command via `file {full_path}` 9 10 # These fileType constants need a lot more added 11 fileType_images = ("jpg", "png", "tff", "svc", "gif") 12 fileTypes_videos = ("mkv", "mp4", "mov") 13 fileTypes_audio = ("mp3", "mp4", "flac", "wav", "ogg", "raw") 14 fileTypes_docs = ("txt", "xls", "xlsx") 15 16 fileTypes_media = fileType_images + fileTypes_videos + fileTypes_audio 17 set().union(fileTypes_media) 18 19 options = { 20 "images": fileType_images, 21 "videos": fileTypes_videos, 22 "audio": fileTypes_audio, 23 "media": fileTypes_media, 24 "documents": fileTypes_docs, 25 "custom": [] 26 } 27 28 typeToExtensionMap = { 29 "ASCII text, with no line terminators": "txt" 30 } 31 32 if __name__ == "__main__": 33 print("This is a support file, not intended to be called directly")