fixed syntax for io.Copy

This commit is contained in:
Christian Goll
2022-02-28 10:29:03 +01:00
parent e783fabbf9
commit 2d223b6b67

View File

@@ -34,7 +34,7 @@ func CopyFile(src string, dst string) error {
}
defer dstFD.Close()
bytes, err := io.Copy(srcFD, dstFD)
bytes, err := io.Copy(dstFD, srcFD)
if err != nil {
wwlog.Printf(wwlog.ERROR, "File copy from %s to %s failed.\n %s\n", src, dst, err)
return err