cat entry content

This commit is contained in:
Chris Lu committed 2021-08-24 02:38:32 -07:00
1 parent e9ebe24f2e
commit 6bab20d862
2 files changed
+10

No files matched your search

+5
View File
@@ -52,6 +52,11 @@ func (c *commandFsCat) Do(args []string, commandEnv *CommandEnv, writer io.Write
return err
}
if len(respLookupEntry.Entry.Content) > 0 {
_, err = writer.Write(respLookupEntry.Entry.Content)
return err
}
return filer.StreamContent(commandEnv.MasterClient, writer, respLookupEntry.Entry.Chunks, 0, math.MaxInt64)
})