X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c3d4f8a585202ec58df5506934b698039c200b68..77f5a84ccc2b14438286ed05c6af183b8d8be605:/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 {