aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/scaffold.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 6fcbd7efb..fb81f9966 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -2,7 +2,7 @@ package command
import (
"fmt"
- "os"
+ "github.com/chrislusf/seaweedfs/weed/util"
"path/filepath"
"github.com/chrislusf/seaweedfs/weed/command/scaffold"
@@ -56,7 +56,7 @@ func runScaffold(cmd *Command, args []string) bool {
}
if *outputPath != "" {
- os.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
+ util.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
} else {
fmt.Println(content)
}