Optimize buildActionsForCopy routine (#2657)
Optimize buildActionsForCopy routine (#2657)

* optimize buildActionsForCopy routine

* more resilient sync in util.fs, add comments

andreypopp/esy,andreypopp/esy,andreypopp/esy