public DirectoryConfig ReadDirectoryConfig()
        {
            if (!File.Exists(dirConfigPath + "DirectoryConfig.json"))
            {
                return(null);
            }

            string json = File.ReadAllText(dirConfigPath + "DirectoryConfig.json");

            DirectoryConfig configFile = JsonConvert.DeserializeObject <DirectoryConfig>(json);

            return(configFile);
        }
        public void WriteDirectoryConfig(string osuPath, string localPath)
        {
            CheckIfDirectoryExists();

            DirectoryConfig configFile = new DirectoryConfig();

            configFile.osuDirectory   = osuPath;
            configFile.localDirectory = localPath;

            string json = JsonConvert.SerializeObject(configFile, Formatting.Indented);

            File.WriteAllText(dirConfigPath + "DirectoryConfig.json", json);
        }