Exemple #1
0
        /// <summary>Deletes a modfile and binary from the cache.</summary>
        public static bool DeleteModfileAndBinaryZip(int modId, int modfileId)
        {
            bool isSuccessful = IOUtilities.DeleteFile(CacheClient.GenerateModfileFilePath(modId, modfileId));

            isSuccessful = (IOUtilities.DeleteFile(CacheClient.GenerateModBinaryZipFilePath(modId, modfileId)) &&
                            isSuccessful);
            return(isSuccessful);
        }
Exemple #2
0
        /// <summary>Deletes a modfile and binary from the cache.</summary>
        public static bool DeleteModfileAndBinaryZip(int modId, int modfileId)
        {
            string modfilePath = CacheClient.GenerateModfileFilePath(modId, modfileId);
            string zipPath     = CacheClient.GenerateModBinaryZipFilePath(modId, modfileId);

            bool success = true;

            if (!LocalDataStorage.DeleteFile(modfilePath))
            {
                success = false;
            }
            if (!LocalDataStorage.DeleteFile(zipPath))
            {
                success = false;
            }

            return(success);
        }
Exemple #3
0
 public static void DeleteModfileAndBinaryZip(int modId, int modfileId)
 {
     CacheClient.DeleteFile(CacheClient.GenerateModfileFilePath(modId, modfileId));
     CacheClient.DeleteFile(CacheClient.GenerateModBinaryZipFilePath(modId, modfileId));
 }