Skip to content

Commit

Permalink
change file storage interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeecave committed Apr 4, 2021
1 parent e472e0f commit c85ebec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type FileStorage interface {
OpenFile(fileIdentifier string) (b []byte, fileid string, fullURL string, err error)
GetURL(fileIdentifier string) (fullURL string)
// always returning bytes might be a little expensive, but it makes the interface much more reasonable
SaveFile(fileIdentifier string, b io.Reader) (fileid string, fullURL string, err error)
SaveFile(fileIdentifier string, b io.Reader, sanitizePath bool) (fileid string, fullURL string, err error)
}

// type Logger struct {
Expand Down

0 comments on commit c85ebec

Please sign in to comment.