Actually start reading CSV file
This commit is contained in:
parent
6b02b75a87
commit
e81161ca7f
3 changed files with 30 additions and 7 deletions
|
|
@ -29,3 +29,8 @@ func FileContentWrite(body io.Reader, collection Collection, uid uuid.UUID) erro
|
|||
log.Info().Str("filepath", filepath).Msg("Save audio file content")
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewFileReader(collection Collection, uid uuid.UUID) (io.Reader, error) {
|
||||
path := fileContentPath(collection, uid)
|
||||
return os.Open(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue