Esempio n. 1
0
        public static void DeleteInactiveBuilds(ModProfile profile)
        {
            string buildDir = CacheClient.GenerateModBuildsDirectoryPath(profile.id);

            string[] buildFilePaths = Directory.GetFiles(buildDir, "*.*");

            foreach (string buildFile in buildFilePaths)
            {
                if (Path.GetFileNameWithoutExtension(buildFile)
                    != profile.activeBuild.id.ToString())
                {
                    CacheClient.DeleteFile(buildFile);
                }
            }
        }
Esempio n. 2
0
 public static string GenerateModBinaryZipFilePath(int modId, int modfileId)
 {
     return(CacheClient.GenerateModBuildsDirectoryPath(modId)
            + modfileId + ".zip");
 }