/// <summary> /// Sets up the cache write process and return default cache file /// </summary> /// <param name="path">The directory path to store the setup cache files</param> public static string SetupWrite(string path) { // Create cache file directory if theres not one if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } // Get the appended file directory string string filePath = CacheDirectory.AppendFileToDirectory(path, "cache", CacheFileType.txt); // If no cache file, create one if (!File.Exists(filePath)) { File.Create(filePath).Dispose(); } return(filePath); }