func ReadDir(dirname string) ([]os.FileInfo, error) {
	log.Printf("androidasset.ReadDir() %s", dirname)
	var assetFile string
	if dirname == "" || dirname == "." {
		assetFile = assetFileName
	} else {
		assetFile = filepath.Join(dirname, assetFileName)
	}
	var yamlFile []byte
	var err error
	log.Printf("androidasset.ReadFile() %s", assetFile)
	if yamlFile, err = ReadFile(assetFile); err != nil {
		log.Printf("Error loading asset file %s %v", assetFile, err)
		return nil, err
	}
	if len(yamlFile) == 0 {
		log.Printf("empty yaml file")
		return nil, fmt.Errorf("File not found")
	}
	log.Printf("dir: %s", string(yamlFile[:]))
	ret := make([]os.FileInfo, 0)
	manifest := &directoryManifest{}
	err = yaml.Unmarshal(yamlFile, manifest)
	if err != nil {
		return nil, err
	}
	for _, f := range manifest.Files {
		ret = append(ret, &assetFileStat{
			name:    f,
			size:    1, // don't know the size, for now...
			mode:    0444,
			modTime: time.Now(),
			sys:     nil,
		})

	}
	return ret, nil

}
// ReadDir returns a list of files present in an asset directory.
ReadDir returns a list of files present in an asset directory.
// ReadDir returns a list of files present in an asset directory .
func ReadDir(dirname string) ([]os.FileInfo, error) {
	log.Printf("androidasset.ReadDir() %s", dirname)
	var assetFile string
	if dirname == "" || dirname == "." {
		assetFile = assetFileName
	} else {
		assetFile = filepath.Join(dirname, assetFileName)
	}
	var yamlFile []byte
	var err error
	log.Printf("androidasset.ReadFile() %s", assetFile)
	if yamlFile, err = ReadFile(assetFile); err != nil {
		log.Printf("Error loading asset file %s %v", assetFile, err)
		return nil, err
	}
	if len(yamlFile) == 0 {
		log.Printf("empty yaml file")
		return nil, fmt.Errorf("File not found")
	}
	log.Printf("dir: %s", string(yamlFile[:]))
	ret := make([]os.FileInfo, 0)
	manifest := &directoryManifest{}
	err = yaml.Unmarshal(yamlFile, manifest)
	if err != nil {
		return nil, err
	}
	for _, f := range manifest.Files {
		ret = append(ret, &assetFileStat{
			name:    f,
			size:    1, 
			mode:    0444,
			modTime: time.Now(),
			sys:     nil,
		})
	}
	return ret, nil
}
func ReadDir ( dirname string ) ( [ ] os . FileInfo , error ) { log . Printf ( " " , dirname ) var assetFile string if dirname == " " || dirname == " " { assetFile = assetFileName } else { assetFile = filepath . Join ( dirname , assetFileName ) } var yamlFile [ ] byte var err error log . Printf ( " " , assetFile ) if yamlFile , err = ReadFile ( assetFile ) ; err != nil { log . Printf ( " " , assetFile , err ) return nil , err } if len ( yamlFile ) == 0 { log . Printf ( " " ) return nil , fmt . Errorf ( " " ) } log . Printf ( " " , string ( yamlFile [ : ] ) ) ret := make ( [ ] os . FileInfo , 0 ) manifest := & directoryManifest { } err = yaml . Unmarshal ( yamlFile , manifest ) if err != nil { return nil , err } for _ , f := range manifest . Files { ret = append ( ret , & assetFileStat { name : f , size : 1 , mode : 0444 , modTime : time . Now ( ) , sys : nil , } ) } return ret , nil }
ReadDir returns a list of files present in an asset directory.
ReadDir returns a list of files present in an asset directory .
// don't know the size, for now...