oop
This commit is contained in:
@@ -72,12 +72,12 @@ func merge(filepath string, mergeTargetFilePath string) error {
|
||||
}
|
||||
|
||||
func rename(oldpath, newpath string) error {
|
||||
b, err := io.ReadFile(oldpath)
|
||||
b, err := os.ReadFile(oldpath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := io.WriteFile(b, newpath, os.ModePerm); err != nil {
|
||||
if err := os.WriteFile(b, newpath, os.ModePerm); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user