aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_uncache.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-28 23:10:32 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-28 23:10:32 -0800
commitf3a334965d756d42240ea75a5cbc35d6cfabe7f4 (patch)
treea59efd9032858b34dba7120ead2364b620da68d4 /weed/shell/command_remote_uncache.go
parent9ccfc1cfee63dda1261a73a82f6d077e206daa79 (diff)
downloadseaweedfs-f3a334965d756d42240ea75a5cbc35d6cfabe7f4.tar.xz
seaweedfs-f3a334965d756d42240ea75a5cbc35d6cfabe7f4.zip
Update command_remote_uncache.go
minor
Diffstat (limited to 'weed/shell/command_remote_uncache.go')
-rw-r--r--weed/shell/command_remote_uncache.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go
index 0d4e0cf7d..53d043ebf 100644
--- a/weed/shell/command_remote_uncache.go
+++ b/weed/shell/command_remote_uncache.go
@@ -4,12 +4,13 @@ import (
"context"
"flag"
"fmt"
- "github.com/chrislusf/seaweedfs/weed/filer"
- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
- "github.com/chrislusf/seaweedfs/weed/util"
"io"
"path/filepath"
"strings"
+
+ "github.com/chrislusf/seaweedfs/weed/filer"
+ "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
+ "github.com/chrislusf/seaweedfs/weed/util"
)
func init() {
@@ -41,12 +42,12 @@ func (c *commandRemoteUncache) Help() string {
func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
- remoteUnmountCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
+ remoteUncacheCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
- dir := remoteUnmountCommand.String("dir", "", "a directory in filer")
- fileFiler := newFileFilter(remoteUnmountCommand)
+ dir := remoteUncacheCommand.String("dir", "", "a directory in filer")
+ fileFiler := newFileFilter(remoteUncacheCommand)
- if err = remoteUnmountCommand.Parse(args); err != nil {
+ if err = remoteUncacheCommand.Parse(args); err != nil {
return nil
}