/// <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); }
/// <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); }
public static void DeleteModfileAndBinaryZip(int modId, int modfileId) { CacheClient.DeleteFile(CacheClient.GenerateModfileFilePath(modId, modfileId)); CacheClient.DeleteFile(CacheClient.GenerateModBinaryZipFilePath(modId, modfileId)); }