Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

refactor(command_fs_rm): `entiries` -> `entries` (#3670)

Ryan Russellc4363c4b5e34
diff --git a/weed/shell/command_fs_rm.go b/weed/shell/command_fs_rm.go
index ec29cced93..b8445b7e97 100644
--- a/weed/shell/command_fs_rm.go
+++ b/weed/shell/command_fs_rm.go
@@ -37,10 +37,10 @@ func (c *commandFsRm) Help() string {
func (c *commandFsRm) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
isRecursive := false
ignoreRecursiveError := false
- var entiries []string
+ var entries []string
for _, arg := range args {
if !strings.HasPrefix(arg, "-") {
- entiries = append(entiries, arg)
+ entries = append(entries, arg)
continue
}
for _, t := range arg {
@@ -52,12 +52,12 @@ func (c *commandFsRm) Do(args []string, commandEnv *CommandEnv, writer io.Writer
}
}
}
- if len(entiries) < 1 {
+ if len(entries) < 1 {
return fmt.Errorf("need to have arguments")
}
commandEnv.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {
- for _, entry := range entiries {
+ for _, entry := range entries {
targetPath, err := commandEnv.parseUrl(entry)
if err != nil {
fmt.Fprintf(writer, "rm: %s: %v\n", targetPath, err)