schema: clarify that WriteFileFromReader's filename is optional

Change-Id: I0df3783b282492db1dac29ed3c07e9a38df30a5e
This commit is contained in:
Brad Fitzpatrick 2013-10-20 12:24:32 -07:00
parent 8a56f3744d
commit 4cc81262b4
1 changed files with 1 additions and 0 deletions

View File

@ -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)