Actually start reading CSV file

This commit is contained in:
Eli Ribble 2026-02-08 04:46:54 +00:00
parent 6b02b75a87
commit e81161ca7f
No known key found for this signature in database
3 changed files with 30 additions and 7 deletions

View file

@ -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)
}