cf24af0470
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
17 lines
406 B
Go
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)
|
|
}
|