mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Wait for directory to be removed.
This commit is contained in:
parent
81ab2377f4
commit
978a400f6a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user