Luski.Net/Luski.net/Server.Cleanup.cs

18 lines
347 B
C#
Raw Normal View History

2023-01-01 22:50:39 -05:00
using System;
using System.IO;
namespace Luski.net;
public sealed partial class Server : IDisposable
{
~Server()
{
try { if (Directory.Exists(Cache)) Directory.Delete(Cache, true); } catch { }
}
public void Dispose()
{
try { if (Directory.Exists(Cache)) Directory.Delete(Cache, true); } catch { }
}
}