LPS-51502 move copyFile WF code into wrappers

cc/ @adolfopa