diff options
Diffstat (limited to 'weed/command/watch.go')
| -rw-r--r-- | weed/command/watch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/watch.go b/weed/command/watch.go index 6a0f4e2aa..2dd6ec211 100644 --- a/weed/command/watch.go +++ b/weed/command/watch.go @@ -25,7 +25,7 @@ var cmdWatch = &Command{ var ( watchFiler = cmdWatch.Flag.String("filer", "localhost:8888", "filer hostname:port") - watchTarget = cmdWatch.Flag.String("target", "/", "a folder or file on filer") + watchTarget = cmdWatch.Flag.String("pathPrefix", "/", "path to a folder or file, or common prefix for the folders or files on filer") ) func runWatch(cmd *Command, args []string) bool { @@ -36,7 +36,7 @@ func runWatch(cmd *Command, args []string) bool { stream, err := client.ListenForEvents(context.Background(), &filer_pb.ListenForEventsRequest{ ClientName: "watch", - Directory: *watchTarget, + PathPrefix: *watchTarget, SinceNs: 0, }) if err != nil { |
