GetReader returns a file content reader for the given fileKey. NB! Make sure to call Close() on the file after you are done working with it. If the file doesn't exist returns ErrNotFound.
(fileKey string)
| 117 | // |
| 118 | // If the file doesn't exist returns ErrNotFound. |
| 119 | func (s *System) GetReader(fileKey string) (*blob.Reader, error) { |
| 120 | return s.bucket.NewReader(s.ctx, fileKey) |
| 121 | } |
| 122 | |
| 123 | // Deprecated: Please use GetReader(fileKey) instead. |
| 124 | func (s *System) GetFile(fileKey string) (*blob.Reader, error) { |