Before
protected static void DoDeploy(IHost host, Action<string> action)
{
string remotePath = host.CreateUniqueTempPath("dep");
try
{
action(remotePath);
host.Directory.Delete(remotePath, true);
}
catch
{
try
{
if (host.Directory.Exists(remotePath))
host.Directory.Delete(remotePath, true);
}
catch
{
}
throw;
}
}
After
protected static void DoDeploy(IHost host, Action<string> action)
{
string remotePath = host.CreateUniqueTempPath("dep");
try
{
IDirectoryControl directoryControl = host.Directory;
{
action(remotePath);
directoryControl.Delete(remotePath, true);
}
}
catch
{
try
{
if (directoryControl.Exists(remotePath))
directoryControl.Delete(remotePath, true);
}
catch
{
}
throw;
}
}
Issue was closed