# Functions
CreateTruncateFile receives a filepath and creates a file if it doesn't exist.
ExistingFilesSet creates a set of existing files in a directory.
GetOrCreateDirectory receives the path to the maps directory and creates it if it doesn't exist.
ListFiles creates a slice of filepaths from a give input directory based filtering supplied fileExtension.
ReadOrCreateFile receives a filepath, creates a file if it doesn't exist.
SaveReplayJSONFileToDrive is a helper function that takes the json string of a StarCraft II replay and writes it to drive.
UnmarshalJsonFile deals with every possible opening and unmarshalling problem that might occur when unmarshalling a localization file supplied by: https://github.com/Kaszanas/SC2MapLocaleExtractor.
UnmarshalJSONMapping wraps around unmarshalLocaleFile and returns an empty map[string]interface{} if it fails to unmarshal the original locale mapping file.