func DoImport(repo *model.Repo) error {
	files := file.InternalizeFileList(jQuery("#apkg", ":mobile-pagecontainer").Get(0).Get("files"))
	for i := 0; i < files.Length; i++ {
		reporter := func(total, progress uint64, percent float64) {
			log.Printf("%d/%d : %.2f\n", progress, total, percent)
		}
		if err := repo.ImportFile(context.TODO(), files.Item(i), reporter); err != nil {
			return err
		}
	}
	log.Debugf("Done with import\n")
	return nil
}
// DoImport does an import of a *.fbb package
DoImport does an import of a *.fbb package
// DoImport does an import of a * . fbb package
func DoImport(repo *model.Repo) error {
	files := file.InternalizeFileList(jQuery("#apkg", ":mobile-pagecontainer").Get(0).Get("files"))
	for i := 0; i < files.Length; i++ {
		reporter := func(total, progress uint64, percent float64) {
			log.Printf("%d/%d : %.2f\n", progress, total, percent)
		}
		if err := repo.ImportFile(context.TODO(), files.Item(i), reporter); err != nil {
			return err
		}
	}
	log.Debugf("Done with import\n")
	return nil
}
func DoImport ( repo * model . Repo ) error { files := file . InternalizeFileList ( jQuery ( " " , " " ) . Get ( 0 ) . Get ( " " ) ) for i := 0 ; i < files . Length ; i ++ { reporter := func ( total , progress uint64 , percent float64 ) { log . Printf ( " \n " , progress , total , percent ) } if err := repo . ImportFile ( context . TODO ( ) , files . Item ( i ) , reporter ) ; err != nil { return err } } log . Debugf ( " \n " ) return nil }
DoImport does an import of a *.fbb package
DoImport does an import of a * . fbb package