mirror of https://github.com/perkeep/perkeep.git
schema: clarify that WriteFileFromReader's filename is optional
Change-Id: I0df3783b282492db1dac29ed3c07e9a38df30a5e
This commit is contained in:
parent
8a56f3744d
commit
4cc81262b4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue