in src/Artifacts/Tasks/Robocopy.cs [170:187]
private void CreateDirectoryWithRetries(string directory)
{
// Doing 4 tries with a tiny wait just to catch races
for (int i = 0; i < 4; ++i)
{
try
{
FileSystem.CreateDirectory(directory);
break;
}
catch (IOException)
{
/* ignore failures - we'll catch them later on copy */
Sleep(TimeSpan.FromMilliseconds(200));
}
}
}