A Powershell script for robust file copies, intended for remote collection of large files.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don't fail for too many retries before intended

Minor bug introduced by updated logic, could have resulted in a successful copy
that got rejected because it retried one too many times.

+1 -1
+1 -1
Copy-Robust.ps1
··· 316 316 } 317 317 } 318 318 319 - if ( $count -ge 3 ) { 319 + if ( $count -ge 4 ) { 320 320 Write-Error "Failed to copy `"$local_path`" after 3 retries, aborting" 321 321 return 322 322 }