func (r *fileRepo) fetch(addr hash.Hash, path string) ([]byte, error) {
	fullPath := r.getPath(addr, path)
	logrus.Debugf("fetching file %s", fullPath)

	b, err := afero.ReadFile(r.fs, fullPath)
	if err != nil {
		logrus.Tracef("file: cannot read file: %s", fullPath)
		return nil, err
	}

	return b, nil
}
// Retrieve data on path in account
Retrieve data on path in account
// Retrieve data on path in account
func (r *fileRepo) fetch(addr hash.Hash, path string) ([]byte, error) {
	fullPath := r.getPath(addr, path)
	logrus.Debugf("fetching file %s", fullPath)
	b, err := afero.ReadFile(r.fs, fullPath)
	if err != nil {
		logrus.Tracef("file: cannot read file: %s", fullPath)
		return nil, err
	}
	return b, nil
}
func ( r * fileRepo ) fetch ( addr hash . Hash , path string ) ( [ ] byte , error ) { fullPath := r . getPath ( addr , path ) logrus . Debugf ( " " , fullPath ) b , err := afero . ReadFile ( r . fs , fullPath ) if err != nil { logrus . Tracef ( " " , fullPath ) return nil , err } return b , nil }
Retrieve data on path in account
Retrieve data on path in account