This commit is contained in:
cdle
2023-06-13 15:17:55 +08:00
parent 4354ff80b2
commit cf310e5ef7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ func CopyFile(src string, dst string) error {
defer srcFile.Close()
// 创建目标文件,如果目标文件已存在则覆盖
dstFile, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
dstFile, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755)
if err != nil {
return err
}