go-blaze/b2/filename.go
Tony Blyler cf24af0470 Fixed #1 added comments where necessary
Fixed #2 reorganized methods and structs
Fixed #3 hide the upload struct better and make it more convenient
Fixed #5 parse headers from downloads into a struct
2015-11-22 14:24:06 -05:00

17 lines
406 B
Go

package b2
// FileName B2 file name
type FileName struct {
ID string `json:"fileId"`
Name string `json:"fileName"`
Action string `json:"action"`
Size int64 `json:"size"`
Timestamp int64 `json:"uploadTimestamp"`
conn *B2
}
// GetFileInfo Gets information about one file stored in B2
func (f *FileName) GetFileInfo() (*FileInfo, error) {
return f.conn.GetFileInfo(f.ID)
}