Merge pull request #324 from mslacken:copy_syntax

fixed syntax for io.Copy
This commit is contained in:
Christian Goll
2022-02-28 10:39:56 +01:00
committed by GitHub

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