Skip to content

Commit

Permalink
fix: 修正 localSaver.Open 循环调用自身的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Oct 22, 2024
1 parent 937f34a commit f1d945a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func NewLocalSaver(dir, baseURL, format string, f func(dir, filename, ext string
}, nil
}

func (s *localSaver) Open(name string) (fs.File, error) { return s.Open(name) }
func (s *localSaver) Open(name string) (fs.File, error) { return s.fs.Open(name) }

func (s *localSaver) Save(f multipart.File, filename string, ext string) (string, error) {
relDir := time.Now().Format(s.format)
Expand Down

0 comments on commit f1d945a

Please sign in to comment.