func runCreate() {
fn := flag.String("fn", "", "Filename")
+ id := flag.String("id", "", "Optional file's identity")
add := flag.String("add", "", "Add file to specified .meta4")
mtime := flag.String("mtime", "", "Take that file's mtime as a Published date")
desc := flag.String("desc", "", "Description")
}
f := meta4ra.File{
Name: path.Base(*fn),
+ Identity: *id,
Description: *desc,
Size: uint64(size),
URLs: urls,
type File struct {
XMLName xml.Name `xml:"file"`
Name string `xml:"name,attr"`
+ Identity string `xml:"identity,,omitempty"`
Description string `xml:"description,,omitempty"`
Hashes []Hash `xml:"hash,,omitempty"`
MetaURLs []MetaURL `xml:"metaurl,,omitempty"`