funcGetFileArg(itfiles.DirIterator)(files.File,error){if!it.Next(){err:=it.Err()iferr==nil{err=fmt.Errorf("expected a file argument")}returnnil,err}file:=files.FileFromEntry(it)iffile==nil{returnnil,fmt.Errorf("file argument was nil")}returnfile,nil}