Wait for directory to be removed.

This commit is contained in:
Jared Goodwin 2019-12-28 22:42:11 -08:00
parent 81ab2377f4
commit 978a400f6a

View File

@ -135,6 +135,10 @@ namespace Remotely.Agent.Services
if (Directory.Exists(targetPath))
{
Directory.Delete(targetPath, true);
while (Directory.Exists(targetPath))
{
Thread.Sleep(100);
}
}
Directory.Move(subdir, targetPath);
}