From 4cc81262b414b4c50715740cd540079117bd1aa6 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 20 Oct 2013 12:24:32 -0700 Subject: [PATCH] schema: clarify that WriteFileFromReader's filename is optional Change-Id: I0df3783b282492db1dac29ed3c07e9a38df30a5e --- pkg/schema/filewriter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/schema/filewriter.go b/pkg/schema/filewriter.go index 78b543b89..d685262b2 100644 --- a/pkg/schema/filewriter.go +++ b/pkg/schema/filewriter.go @@ -62,6 +62,7 @@ const ( // WriteFileFromReader creates and uploads a "file" JSON schema // composed of chunks of r, also uploading the chunks. The returned // BlobRef is of the JSON file schema blob. +// The filename is optional. func WriteFileFromReader(bs blobserver.StatReceiver, filename string, r io.Reader) (blob.Ref, error) { m := NewFileMap(filename) return WriteFileMap(bs, m, r)