Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/MonoGame.Framework.Content.Pipeline/Builder/FileHelper.cs
T
2019-06-25 16:00:44 +03:00

21 lines
566 B
C#

// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System.IO;
namespace MonoGame.Framework.Content.Pipeline.Builder
{
public static class FileHelper
{
/// <summary>
/// Checks deletes a file from disk without throwing exceptions.
/// </summary>
public static void DeleteIfExists(string path)
{
if (File.Exists(path))
File.Delete(path);
}
}
}