LPS-44042 - Copy "tofile" instead of "todir"