Skip to content

Commit

Permalink
Merge pull request #77 from zhengguo07q/master
Browse files Browse the repository at this point in the history
修复embedFS在windows平台下的问题
  • Loading branch information
dongxuny authored Oct 31, 2023
2 parents ef931e4 + 63213a2 commit 1456717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry/sw_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (entry *SWEntry) listFilesWithSuffix(urlConfig *swUrlConfig, jsonPath strin
for i := range files {
file := files[i]
if !file.IsDir() && strings.HasSuffix(file.Name(), suffix) {
bytes, err := entry.embedFS.ReadFile(filepath.Join(jsonPath, file.Name()))
bytes, err := entry.embedFS.ReadFile(filepath.ToSlash(filepath.Join(jsonPath, file.Name())))
key := entry.entryName + "-" + file.Name()

if err != nil && !ignoreError {
Expand Down

0 comments on commit 1456717

Please sign in to comment.