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
bb8df8e1a8
commit
aa7a2feefe
@ -9,6 +9,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
||||
namespace Remotely.Agent.Services
|
||||
{
|
||||
@ -135,6 +136,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