diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-15 00:55:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 00:55:20 -0700 |
| commit | 4eeeb5f50d87e669325729bf2f7fafc9d265721e (patch) | |
| tree | b993d49c55b7d6d915b969c6c7abf1113beebba2 /weed/command/filer.go | |
| parent | b8ce05c9047cc95d76b57116affeb4ca7385c34a (diff) | |
| parent | 358c0c0b37a2b6ce7eb136dc55dabef61ef4528d (diff) | |
| download | seaweedfs-4eeeb5f50d87e669325729bf2f7fafc9d265721e.tar.xz seaweedfs-4eeeb5f50d87e669325729bf2f7fafc9d265721e.zip | |
Merge pull request #3180 from blacktear23/issue-3149
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index 2c91e6fec..c9f9a1956 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -55,6 +55,7 @@ type FilerOptions struct { debug *bool debugPort *int localSocket *string + showUIDirectoryDelete *bool } func init() { @@ -82,6 +83,7 @@ func init() { f.debug = cmdFiler.Flag.Bool("debug", false, "serves runtime profiling data, e.g., http://localhost:<debug.port>/debug/pprof/goroutine?debug=2") f.debugPort = cmdFiler.Flag.Int("debug.port", 6060, "http port for debugging") f.localSocket = cmdFiler.Flag.String("localSocket", "", "default to /tmp/seaweedfs-filer-<port>.sock") + f.showUIDirectoryDelete = cmdFiler.Flag.Bool("ui.deleteDir", true, "enable filer UI show delete directory button") // start s3 on filer filerStartS3 = cmdFiler.Flag.Bool("s3", false, "whether to start S3 gateway") @@ -216,6 +218,7 @@ func (fo *FilerOptions) startFiler() { Cipher: *fo.cipher, SaveToFilerLimit: int64(*fo.saveToFilerLimit), ConcurrentUploadLimit: int64(*fo.concurrentUploadLimitMB) * 1024 * 1024, + ShowUIDirectoryDelete: *fo.showUIDirectoryDelete, }) if nfs_err != nil { glog.Fatalf("Filer startup error: %v", nfs_err) |
