fix CopyFile api

This commit is contained in:
josc146
2023-05-23 14:36:24 +08:00
parent 89c8545528
commit 5e4f6159be
2 changed files with 7 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ func (a *App) CopyFile(src string, dst string) error {
}
defer destFile.Close()
_, err = io.Copy(sourceFile, destFile)
_, err = io.Copy(destFile, sourceFile)
if err != nil {
return err
}