func (h *fileServeHandler) Get(job rest.Job) (bool, error) {
	filename, err := filepath.Abs(filepath.Clean(h.dir + job.ResourceID()))
	if err != nil {
		logger.Errorf("file '%s' does not exist", filename)
		return false, errors.Annotate(err, ErrDownloadingFile, errorMessages, filename)
	}
	logger.Infof("serving file '%s'", filename)
	http.ServeFile(job.ResponseWriter(), job.Request(), filename)
	return true, nil
}
// Get is specified on the GetResourceHandler interface.
Get is specified on the GetResourceHandler interface.
// Get is specified on the GetResourceHandler interface .
func (h *fileServeHandler) Get(job rest.Job) (bool, error) {
	filename, err := filepath.Abs(filepath.Clean(h.dir + job.ResourceID()))
	if err != nil {
		logger.Errorf("file '%s' does not exist", filename)
		return false, errors.Annotate(err, ErrDownloadingFile, errorMessages, filename)
	}
	logger.Infof("serving file '%s'", filename)
	http.ServeFile(job.ResponseWriter(), job.Request(), filename)
	return true, nil
}
func ( h * fileServeHandler ) Get ( job rest . Job ) ( bool , error ) { filename , err := filepath . Abs ( filepath . Clean ( h . dir + job . ResourceID ( ) ) ) if err != nil { logger . Errorf ( " " , filename ) return false , errors . Annotate ( err , ErrDownloadingFile , errorMessages , filename ) } logger . Infof ( " " , filename ) http . ServeFile ( job . ResponseWriter ( ) , job . Request ( ) , filename ) return true , nil }
Get is specified on the GetResourceHandler interface.
Get is specified on the GetResourceHandler interface .