mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 18:30:04 +08:00
change: udpate docs
This commit is contained in:
@@ -2,6 +2,7 @@ package scaffold
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
@@ -62,7 +63,7 @@ func createFolder(folderPath string) error {
|
||||
|
||||
func createFile(filePath string, data string) error {
|
||||
log.Info().Str("filePath", filePath).Msg("create file")
|
||||
err := os.WriteFile(filePath, []byte(data), 0o644)
|
||||
err := ioutil.WriteFile(filePath, []byte(data), 0o644)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("create file failed")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user