diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-24 02:38:32 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-24 02:38:32 -0700 |
| commit | 6bab20d862cd2960dd4272cb7d6aa6abf8d6f097 (patch) | |
| tree | 98635356e7a3bc37dafe9b36900e9f0139c0d2e8 /weed/command/filer_cat.go | |
| parent | e9ebe24f2e0f8b30284ea9334d5924f54e970c95 (diff) | |
| download | seaweedfs-6bab20d862cd2960dd4272cb7d6aa6abf8d6f097.tar.xz seaweedfs-6bab20d862cd2960dd4272cb7d6aa6abf8d6f097.zip | |
cat entry content
Diffstat (limited to 'weed/command/filer_cat.go')
| -rw-r--r-- | weed/command/filer_cat.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/command/filer_cat.go b/weed/command/filer_cat.go index a46098b04..09f5e97fe 100644 --- a/weed/command/filer_cat.go +++ b/weed/command/filer_cat.go @@ -108,6 +108,11 @@ func runFilerCat(cmd *Command, args []string) bool { return err } + if len(respLookupEntry.Entry.Content) > 0 { + _, err = writer.Write(respLookupEntry.Entry.Content) + return err + } + filerCat.filerClient = client return filer.StreamContent(&filerCat, writer, respLookupEntry.Entry.Chunks, 0, math.MaxInt64) |
