CopyFile uses File.copySync instead of File.writeAsBytesSync