Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Sep 1, 2020
1 parent bbcfede commit 26c454b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upload/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ func (r *Result) SetFileNameGenerator(generator FileNameGenerator) *Result {
return r
}

func (r *Result) FileNameGenerator() FileNameGenerator {
return r.fileNameGenerator
}

func (r *Result) GenFileName() (string, error) {
if r.fileNameGenerator == nil {
return filepath.Join(time.Now().Format("2006/0102"), r.FileName), nil
Expand Down

0 comments on commit 26c454b

Please sign in to comment.