X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/827879be023e90d58eb681b3c930154739a0b27f..318c49002aea966128a9d37ab29e601a104d79bb:/sdk/go/keepclient/collectionreader.go diff --git a/sdk/go/keepclient/collectionreader.go b/sdk/go/keepclient/collectionreader.go index 61fabefacd..344a70c50b 100644 --- a/sdk/go/keepclient/collectionreader.go +++ b/sdk/go/keepclient/collectionreader.go @@ -35,9 +35,9 @@ const ( // parameter when retrieving the collection record). var ErrNoManifest = errors.New("Collection has no manifest") -// CollectionFileReader returns a Reader that reads file content from -// a collection. The filename must be given relative to the root of -// the collection, without a leading "./". +// CollectionFileReader returns a Reader that reads content from a single file +// in the collection. The filename must be relative to the root of the +// collection. A leading prefix of "/" or "./" in the filename is ignored. func (kc *KeepClient) CollectionFileReader(collection map[string]interface{}, filename string) (Reader, error) { mText, ok := collection["manifest_text"].(string) if !ok {